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

Filter out noise from opening non-ELF files with the stripped linter #803

Closed
wants to merge 3 commits into from

Conversation

Elizafox
Copy link
Contributor

Other errors are signs things are quite amiss and should be warned, but a bad magic number value can occur for harmless reasons like opening a script or some improperly set executable bit. So there's no point in reporting these errors.

No functional linter changes beyond this cosmetic change during build.

Other errors are signs things are quite amiss and should be warned, but
a bad magic number value can occur for harmless reasons like scripts. So
there's no point in reporting these errors.

Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
pkg/linter/linter.go Outdated Show resolved Hide resolved
To make this work would require effort to make the stripped linter
understand archives and .o files. Don't bother right now.

Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
@Elizafox Elizafox force-pushed the filter-elf-noise branch 2 times, most recently from 3c62a91 to b0ea2de Compare October 30, 2023 22:14
Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
@Elizafox
Copy link
Contributor Author

Elizafox commented Oct 31, 2023

Closing for now as @jonjohnsonjr has mentioned the intention to refactor a bunch of stuff and this will need to be rewritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants