Skip to content

Commit cf164f2

Browse files
committed
bazel: stop tracking MODULE.bazel.lock
Set --lockfile_mode=off in .bazelrc, gitignore the file, and remove the tracked copy. Matches bazel-orfs's own .bazelrc:7. Tracking the lockfile means every bazel-orfs / yosys / openroad bump produces an 800k-line lock diff that buries the real coordinate change under registry-entry churn (the previous yosys 0.63 bump in this branch generated a 1456-line lock delta from a 4-line change in the resolved yosys entry plus 728 lines of registry-fork residue). We pin the versions we care about explicitly in MODULE.bazel via BCR coordinates and git_override(commit=…); the lockfile adds no integrity that those pins don't already provide. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 3cbfbde commit cf164f2

3 files changed

Lines changed: 10 additions & 5190 deletions

File tree

.bazelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
build --incompatible_strict_action_env
22
build --cxxopt "-std=c++20" --host_cxxopt "-std=c++20"
3+
4+
# Don't track MODULE.bazel.lock. Resolved versions ride along with the
5+
# pinned BCR + git_override(commit=…) coordinates in MODULE.bazel and
6+
# downstream cache hits are what we actually care about. Tracking the
7+
# lockfile just means every bazel-orfs / yosys / openroad bump produces
8+
# a 1000-line lock diff that buries the real change. Matches what
9+
# bazel-orfs itself does (its own .bazelrc:7).
10+
common --lockfile_mode=off
11+
312
try-import %workspace%/user.bazelrc

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ bazel-bin
102102
bazel-out
103103
bazel-OpenROAD-flow-scripts
104104
bazel-testlogs
105+
MODULE.bazel.lock
105106

106107
# python venv
107108
venv/

0 commit comments

Comments
 (0)