-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel should not hardcode license enforcement for third_party/ #3639
Comments
+100
…On Wed, 30 Aug 2017 at 0:02 cgrushko ***@***.***> wrote:
Bazel enforces licenses in BUILD files in third_party/ directories.
Users other than Google might not be interested in enforcement at all, or
may be interested in using a different directory.
Proposal: make licenses enforcement depend on a flag to Bazel which we
enable in Bazel's bazelrc, but others are free to do something else.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3639>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFxBO-FNA-Tik1xst-Scu1nIArVZBks5sdHxpgaJpZM4PGiqX>
.
|
Got bitten by this again... |
@cgrushko any chance you'll tackle this? |
I took a peek; it seems that this check happens in at least two places (RuleClass.createRule and PackageFactory.callExportsFiles). The straightforward workaround is to use |
I'm starting to look more at cleaning up Bazel's licensing logic (of which there's a lot of opportunity, but it's a project). Is this issue still currently biting anyone? |
Indeed
…On Thu, 7 Jun 2018 at 23:59 Greg ***@***.***> wrote:
I'm starting to look more at cleaning up Bazel's licensing logic (of which
there's a lot of opportunity, but it's a project).
Is this issue still currently biting anyone?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3639 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF6T3rqC76GFb-KZICfDlbolSMrHgks5t6ZQxgaJpZM4PGiqX>
.
|
The best near-term solution I can think of is to move this checking to The only downside is it would take Bazel longer to identify missing third_party license declarations. But obviously that doesn't matter to people who don't want that anyway. |
@gregestren I'm interested in how this check-licenses feature works (or, will work); at present, we're integrating a third-party to flag up if we add a dependency (whether directly or transitively) that has a license we disqualify from our codebase. Having a way for bazel to do this would be great. |
@petemounce: @aiuto has been leading a license redesign. Not sure where the best current doc / tracking bug for that is. |
A feature request for that redesign would be to allow such checking in
generated workspaces.
For instance, I wrote a maven integration, which generates a workspace in
/external that reflects the full artifact space referenced that will be
pulled in from maven. Being able to turn on license enforcement, so that
(where possible to detect from maven metadata, or overridden where not) one
could avoid licenses not permitted in one's repo, like AGPL, etc.
…On Fri, Jan 25, 2019 at 10:38 AM Greg ***@***.***> wrote:
@petemounce <https://github.com/petemounce> : @aiuto
<https://github.com/aiuto> has been leading a license redesign. Not sure
where the best current doc / tracking bug for that is.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3639 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUN4v5MMtGX3O9Qntsb948MKK4DFzqXks5vG08zgaJpZM4PGiqX>
.
--
-----
Christian Gruber
[email protected]
|
When on, all rules and files declared with exports_file() under //third_party must declare licenses(). This is the flag's default, and also status quo semantics. The point of this flag is to let users turn off that checking when they don't want to treat //third_party as special. Fixes bazelbuild#3639
When on, all rules and files declared with exports_file() under //third_party must declare licenses(). This is the flag's default, and also status quo semantics. The point of this flag is to let users turn off that checking when they don't want to treat //third_party as special. Fixes bazelbuild#3639 Closes bazelbuild#7262. PiperOrigin-RevId: 231645495
Bazel has no business checking that itself. That should be handled by rules_licenses. @cgruber I think what you want should be possible. |
Bazel enforces licenses in BUILD files in third_party/ directories.
Users other than Google might not be interested in enforcement at all, or may be interested in using a different directory.
Proposal: make licenses enforcement depend on a flag to Bazel which we enable in Bazel's bazelrc, but others are free to do something else.
The text was updated successfully, but these errors were encountered: