Skip to content

Commit

Permalink
exec.Command can return nil apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Jan 25, 2024
1 parent f13d5c4 commit a36ac96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/backends/python/gen_pypi_map/install_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func pipInstall(pkg string, root string, timeout time.Duration) error {
// Run pip to install just the package, so we can statically analyze it
cmd := exec.Command("pip", "install", "--no-deps", "--target", root, pkg)

if cmd == nil {
return PypiError{InstallFailure, "Failed to initialize exec.Command", nil}
}

killed := false
installing := true
go func() {
Expand Down

0 comments on commit a36ac96

Please sign in to comment.