Skip to content

Commit

Permalink
Enable use_plus_in_repo_names for common options
Browse files Browse the repository at this point in the history
Bazel 7 uses ~ in external repo names and it leads to
various issues like bazelbuild/bazel#23127 or some tools
consider such paths as ignored because tilde could mean
a backup copy of the file. Bazel 8 addresses these issues
with use of + by default, but Bazel 7 must be supplied with
an incompatible argument to enable this behavior
  • Loading branch information
ujohnny authored and fhanau committed Feb 27, 2025
1 parent 9383d44 commit 5c987bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build --test_timeout=1,15,60,240
# Not using bzlmod for dependencies yet
common --noenable_bzlmod

# Use plus in repo names for Bazel 7 as long as it's used to address some resolution issues
# Bazel 8 brings this behavior by default and this line can be removed after Bazel upgrade.
common --incompatible_use_plus_in_repo_names

# bazel7 enables Build without the Bytes (BwoB) by default. This significantly speeds up builds
# using the remote cache since less data needs to be fetched. Set remote_cache_eviction_retries
# which is required to fully support a "dumb" cache. Bazel 8 already sets this value by default.
Expand Down

0 comments on commit 5c987bb

Please sign in to comment.