Skip to content

Commit

Permalink
Handle missing PyPI packages properly as well. (#881)
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Brown <[email protected]>
  • Loading branch information
calebbrown authored Sep 14, 2023
1 parent 32b06bc commit 41d6b49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/pkgmanager/pypi.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func getPyPIArchiveURL(pkgName, version string) (string, error) {
return url.URL, nil
}
}
// can't find source tarball
return "", fmt.Errorf("source tarball not found for %s, version %s", pkgName, version)

// Return an empty string and no error if we can't find an archive URL.
return "", nil
}

var pypiPkgManager = PkgManager{
Expand Down

0 comments on commit 41d6b49

Please sign in to comment.