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 opening non-ELF files #811

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

@jonjohnsonjr jonjohnsonjr commented Oct 31, 2023

Instead of attempting every file, only try to parse files that start with the ELF magic header.

Rebase of #803 onto #810

Instead of attempting every file, only try to parse files that start
with the ELF magic header.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr marked this pull request as ready for review November 1, 2023 16:25
@jonjohnsonjr
Copy link
Contributor Author

Before.

After:

time melange lint ~/go-1.21-1.21.0-r0.apk
Linting apk: /Users/jonjohnson/go-1.21-1.21.0-r0.apk
package linter warning in /Users/jonjohnson/go-1.21-1.21.0-r0.apk: Package contains documentation files but is not a documentation package
melange lint ~/go-1.21-1.21.0-r0.apk  1.42s user 0.22s system 77% cpu 2.111 total

@jonjohnsonjr jonjohnsonjr merged commit 87cca8b into chainguard-dev:main Nov 1, 2023
26 checks passed
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.

2 participants