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

Add post-file walk linting and empty package linting #700

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

Elizafox
Copy link
Contributor

This checks for empty packages and also adds a facility to allow for post-walk lints that can walk the tree or do whatever.

@Elizafox
Copy link
Contributor Author

Elizafox commented Sep 19, 2023

Hmm, some packages are failing. I'll try to investigate soon.

Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
@Elizafox
Copy link
Contributor Author

So I've discovered in my travels that gdk-pixbuf had an empty metapackage that wasn't necessary, and exa had an empty docs package. So these weren't spurious failures at all. The linter did what it was supposed to do.

This linter is likely to show a lot of empty packages. I don't know if I should make this an optional lint for the moment, or rip the band-aid off now.

pkg/build/linter.go Outdated Show resolved Hide resolved
Signed-off-by: Elizabeth Myers <elizabeth.myers@chainguard.dev>
@kaniini kaniini merged commit a06539b into chainguard-dev:main Sep 20, 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