Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang remote license search attempts to resolve stdlib modules #3149

Open
kzantow opened this issue Aug 21, 2024 · 0 comments
Open

golang remote license search attempts to resolve stdlib modules #3149

kzantow opened this issue Aug 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kzantow
Copy link
Contributor

kzantow commented Aug 21, 2024

What happened:
When scanning some go modules with golang remote license search enabled (SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true), there are stdlib modules defined, like cmd/cgo/info that Syft attempts to find but since the module is not found in the go proxy server, syft attempts to download the repositories such as https://cmd/cgo/info/refs?service=git-upload-pack which will fail and could pose a performance issue.

What you expected to happen:
Syft does not attempt to download stdlib modules.

Steps to reproduce the issue:
SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true syft golang:latest

@kzantow kzantow added the bug Something isn't working label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant