-
Notifications
You must be signed in to change notification settings - Fork 659
Add license checking to lint #3449
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
Conversation
Previously these were only tested in GitHub Actions. Add the same checks to "make lint", to match "Lints". Signed-off-by: Anders F Björklund <[email protected]>
Makefile
Outdated
@@ -467,13 +467,17 @@ check-generated: | |||
((git diff $$(find . -name '*.pb.desc') | cat) && \ | |||
(echo "Please run 'make generate' when making changes to proto files and check-in the generated file changes" && false)) | |||
|
|||
LICENSES = Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like that we list allowed licenses in 2 places. The other place is:
lima/.github/workflows/test.yml
Line 68 in 56702e0
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib |
Can't we just put that line into a textfile and use it like this:
go-licenses check … --allowed-licenses="$(cat allowed-licenses.txt)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably GHA should just run make lint
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing is how to install the tools
Signed-off-by: Anders F Björklund <[email protected]>
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Previously these were only tested in GitHub Actions.
Since PR #3293
Add the same checks to "make lint", to match "Lints".
Closes #3443