-
Notifications
You must be signed in to change notification settings - Fork 587
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
Excessive "unable to read golang buildinfo error=not a Go executable file" warnings in versions after v0.62.1 #1403
Comments
I'm seeing this aswell same issue |
Hi and thanks for this report! Is there any public image you could reference that this happens with? |
I was unable to find a public example of this however I have a feeling it is in relation to multi stage builds and scratch images. |
Adding context from @wagoodman on anchore/grype#1039:
|
Please provide a set of steps on how to reproduce the issue
I'm not sure to be honest, we see this against every container image we build, and have locked the sfyt version to 0.62.1 now as the mass warnings were annoying developers, it doesn't seem to affect the eventual output of the tool from what I can tell. It could be something specific in our baseimage that syft fundamentally doesn't like I guess, but it seems like a problem in syft in that it's expecting everything it finds to be a go executable.
What happened:
In 0.62.3 there are over 2000 lines of warnings generated (
unable to read golang buildinfo error
/golang cataloger: bin parsing: number of builds and readers doesn't match
)In 0.63 it's the same, with over 2k warnings when scanning the container image:
What you expected to happen:
Exact same image, using 0.62.1 throws a couple of info messages only (this is the complete output)...
Anything else we need to know?: I don't think so
Environment:
syft version
:cat /etc/os-release
or similar): This is when running on a Travis build engine (dist: bionic
), but we see the same thing running syft locally too.The text was updated successfully, but these errors were encountered: