feat: Add Sandbox Inspection and Debugging Commands (#261)

* feat: add sandbox DX commands

* fix: Linter errors

* fix: Sandbox deny log parsing

* fix: Sandbox docs

* refactor: Maintain SSOT across pkg dependencies

* fix: Linter errors
This commit is contained in:
Abhisek Datta
2026-05-19 14:40:54 +05:30
committed by GitHub
parent 46cc70db53
commit b8588e3df4
97 changed files with 8796 additions and 478 deletions
+5 -1
View File
@@ -168,7 +168,11 @@ func getPypiPackageDependencies(packageName, version string, packageTargets []*P
if res.StatusCode != 200 {
return nil, ErrFailedToFetchPackage.Wrap(err)
}
defer res.Body.Close()
defer func() {
if err := res.Body.Close(); err != nil {
log.Warnf("failed to close PyPI response body: %v", err)
}
}()
var pypipkg pypiPackage
err = json.NewDecoder(res.Body).Decode(&pypipkg)