You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Thu, 19 Jul 2018 at 15:06 Laurent Le Brun ***@***.***> wrote:
When a bzl file contains a load, e.g.
load("//some:file.bzl", "fct")
it implicitly exports fct.
This is problematic for many reasons:
- Exports should be explicit
- Other languages don't do that
- Removing a load can break other files
- So it means we can't have a tool to safely remove unused loads
Unfortunately, this is a breaking change. We may create a tool to help
users update their codebase.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5636>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFybNSF5XAM14acXIPGbRwZ5Hgmtyks5uIHZVgaJpZM4VWRvW>
.
changed the title [-]--incompatible_no_transitive_loads: Forbid macros loaded transitively[/-][+]incompatible_no_transitive_loads: Forbid macros loaded transitively[/+]on Jan 7, 2019
Yes.
We close an issue about an incompatible flag when the change is enabled by default at head. So you can expect all Bazel releases after March 2019 to behave correctly in this regard.
Activity
ittaiz commentedon Jul 20, 2018
Introduce --incompatible_no_transitive_loads
[-]Forbid macros loaded transitively[/-][+]--incompatible_no_transitive_loads: Forbid macros loaded transitively[/+]Skydoc: do not show documentation of loaded symbols
[-]--incompatible_no_transitive_loads: Forbid macros loaded transitively[/-][+]incompatible_no_transitive_loads: Forbid macros loaded transitively[/+]33 remaining items
Switch --incompatible_no_transitive_loads
Switch --incompatible_no_transitive_loads
Switch --incompatible_no_transitive_loads
Switch --incompatible_no_transitive_loads
Switch --incompatible_no_transitive_loads
Remove the flag `incompatible_no_transitive_loads`.
Fix transitive macro load
Fix transitive macro load
Fix transitive macro load
ittaiz commentedon Jan 16, 2020
@laurentlb to verify- the fact that this issue is closed means new code can use
load"regularly" and not have to worry about it being exported, right?laurentlb commentedon Jan 17, 2020
Yes.
We close an issue about an incompatible flag when the change is enabled by default at head. So you can expect all Bazel releases after March 2019 to behave correctly in this regard.
Fix transitive macro load
Fix transitive macro load
Fix transitive macro load
Bump Bazel to 2.2.0 (#84)