Skip to content

Commit ce84874

Browse files
committed
build: resync preset
1 parent f531a51 commit ce84874

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

lefthook.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
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-
148
# Format code with oxfmt
159
oxfmt:
1610
glob: "*.{js,ts,jsx,tsx,json,yaml,yml,md}"

tools/preset.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ 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+
110115
# On CI, don't download remote outputs to the local machine.
111116
# Most CI pipelines don't need to access the files and they can remain at rest on the remote cache.
112117
# Significant time can be spent on needless downloads, which is especially noticeable on fully-cached builds.

0 commit comments

Comments
 (0)