Skip to content

Commit f531a51

Browse files
committed
build: remove lockfile_mode
1 parent 6fb66f6 commit f531a51

4 files changed

Lines changed: 6 additions & 41 deletions

File tree

.bazelrc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@ common --config=ruleset
1414
# Required until this is the default; expected in Bazel 7
1515
common --enable_bzlmod
1616

17-
# Ensure that the MODULE.bazel.lock file is complete and committed.
18-
# This is an important security measure: it ensures that developers on the
19-
# same rule set download dependencies at the same versions with the same bits.
20-
# This setting does not affect modules that depend on this module.
21-
#
22-
# When updating dependencies, use --lockfile_mode=refresh, for example:
23-
# bazel mod tidy --lockfile_mode=refresh
24-
#
25-
# When testing different versions of Bazel, use --lockfile_mode=update or
26-
# --lockfile_mode=off. The lock file format changes over time, and different
27-
# versions of Bazel may expect different syntax. Bazel also implicitly requires
28-
# some modules, and different versions have different dependencies, which
29-
# also affects the contents of the lock file.
30-
common --lockfile_mode=error
31-
3217
# Load any settings specific to the current user.
3318
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
3419
# This needs to be last statement in this

.github/workflows/conventional-commits.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

lefthook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
pre-commit:
66
parallel: true
77
commands:
8+
bazel-lockfile:
9+
glob:
10+
- "*.bazel"
11+
- "MODULE.bazel.lock"
12+
run: bazel mod deps
13+
814
# Format code with oxfmt
915
oxfmt:
1016
glob: "*.{js,ts,jsx,tsx,json,yaml,yml,md}"

tools/preset.bazelrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ common --incompatible_modify_execution_info_additive
107107
common --incompatible_strict_action_env
108108
# Docs: https://registry.build/flag/bazel?filter=incompatible_strict_action_env
109109

110-
# Fail the build if the MODULE.bazel.lock file is out of date.
111-
# Using this mode in ci prevents the lockfile from being out of date.
112-
common:ci --lockfile_mode="error"
113-
# Docs: https://registry.build/flag/bazel?filter=lockfile_mode
114-
115110
# On CI, don't download remote outputs to the local machine.
116111
# Most CI pipelines don't need to access the files and they can remain at rest on the remote cache.
117112
# Significant time can be spent on needless downloads, which is especially noticeable on fully-cached builds.

0 commit comments

Comments
 (0)