Repository navigation
Conversation
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 8, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 9, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
susinmotion
reviewed
Nov 9, 2026
susinmotion
left a comment
Contributor
There was a problem hiding this comment.
In general this seems fine, but I'd like to talk about it with the team briefly
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 11, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 12, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 16, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 19, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
Contributor
|
We do not intend to flip this flag. Can you name the flag experimental_disable... instead? |
dzbarsky
force-pushed
the
dzbarsky/disable-build-prelude
branch
from
November 22, 2026 12:50
0a6bc21 to
6c0b71e
Compare
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so a change invalidates loaded packages.
dzbarsky
force-pushed
the
dzbarsky/disable-build-prelude
branch
from
November 22, 2026 12:51
6c0b71e to
c64e628
Compare
Contributor
Author
Sure thing, done! |
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 22, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 23, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
brandjon
approved these changes
Nov 23, 2026
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Nov 29, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Dec 3, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
dzbarsky
added a commit
to dzbarsky/bazel
that referenced
this pull request
Dec 4, 2026
Skip prelude lookup and loading for every repository when the flag is enabled. Register the flag in StarlarkSemantics so toggling it on a warm server reevaluates BUILD files. See bazelbuild#11946 for prior discussion about removing the prelude. RELNOTES: Bazel now supports `--incompatible_disable_build_prelude` to disable implicit BUILD preludes. (cherry picked from commit 0a6bc21) Upstream-PR: bazelbuild#32503
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bazel implicitly looks for
//tools/build_rules:prelude_bazelwhen loadingBUILDfiles. Even when the prelude is absent, that lookup can add dependencies on ancestorBUILDfiles. Add the default-off--experimental_disable_build_preludeflag to skip the lookup in every repository. Repositories that rely on prelude symbols can move them to a.bzlfile and load them explicitly. See #11946 for the prior discussion about removing the prelude.The integration test toggles the flag on a warm server and checks the main and external repositories.