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

golangci-lint: Handle empty srcs list #128

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

jelmer
Copy link
Contributor

@jelmer jelmer commented Jan 29, 2024

A common pattern with go and blaze is to have go_library() targets that contain the source files and then trivial go_binary() targets that just wrap the matching library, without any other direct sources.

"golangci-lint run" fails on these binaries because it doesn't like an empty list of sources. It also generally seems pointless to run if we're not passing any files.

@alexeagle alexeagle merged commit e62a8c1 into aspect-build:main Jan 29, 2024
8 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