Skip to content

Commit 60d9b74

Browse files
alan-agius4josephperrott
authored andcommitted
build: enforce frozen lockfile mode (#2977)
This commit adds `lockfile_mode=error` to the `.bazelrc` file. This change ensures that any future builds will fail if the lock file is not up-to-date with the `BUILD.bazel` file, preventing inconsistencies and encouraging developers to commit updated lock files. PR Close #2977
1 parent 2ba5302 commit 60d9b74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test
66
build --sandbox_default_allow_network=false
77
test --sandbox_default_allow_network=false
88

9+
# Frozen lockfile
10+
common --lockfile_mode=error
11+
912
# Required by `rules_ts`.
1013
common --@aspect_rules_ts//ts:skipLibCheck=always
1114
common --@aspect_rules_ts//ts:default_to_tsc_transpiler

0 commit comments

Comments
 (0)