From 41d6b49ae0b8ed5e8aaad89f2ffe5bbdb97f233e Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Thu, 14 Sep 2023 15:08:54 +1000 Subject: [PATCH] Handle missing PyPI packages properly as well. (#881) Signed-off-by: Caleb Brown --- internal/pkgmanager/pypi.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/pkgmanager/pypi.go b/internal/pkgmanager/pypi.go index 65cccf9e..79bc6354 100644 --- a/internal/pkgmanager/pypi.go +++ b/internal/pkgmanager/pypi.go @@ -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{