-
Notifications
You must be signed in to change notification settings - Fork 527
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
Check licenses before building rather than after #768
Conversation
For local development, I've appreciated the ability to ignore I like the change but I'd like to see a fix for #582 as a fast follow. |
Would it be off by default, meaning "do not ignore the result"? That could work. I'd prefer an approach like we have now with |
@bcressey Yeah, definitely failing safe. Something like |
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.
💼
649fcbf
to
ed1acb9
Compare
⬆️ Rebase on develop. Updated Testing Done above. |
If a license is incorrect and will be rejected, it's good to know that before you've spent time building the project. As an example, if the license in a Cargo.toml file is wrong and will be rejected, but we check after the build, you have to rebuild that package even though none of the source has changed. This can be overridden by building with BUILDSYS_ALLOW_FAILED_LICENSE_CHECK=true in case you're doing local development and don't have license information yet.
ed1acb9
to
09560c5
Compare
If a license is incorrect and will be rejected, it's good to know that before
you've spent time building the project.
As an example, if the license in a Cargo.toml file is wrong and will be
rejected, but we check after the build, you have to rebuild that package even
though none of the source has changed.
Testing done:
I ran a build and check-licenses passed.
I then changed apiserver's Cargo.toml to have
license = "Very-Bad-License"
and saw it fail immediately, rather than building the whole OS, failing, and then requiring me to rebuild apiserver and the OS images.I then built with
cargo make -e BUILDSYS_ALLOW_FAILED_LICENSE_CHECK=true
and saw the license error, but saw the build continue anyway.