From 11c638557b3dcb702047889e8a50bd0dc96eaa75 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Wed, 20 Aug 2025 06:43:02 +0000 Subject: [PATCH] build: enforce frozen lockfile mode (#63260) 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 #63260 --- .bazelrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bazelrc b/.bazelrc index 3c0d4583f82..e40d092f41d 100644 --- a/.bazelrc +++ b/.bazelrc @@ -12,6 +12,9 @@ common --@aspect_rules_ts//ts:default_to_tsc_transpiler # Needed as otherwise `env` of TS actions would be ignored. common --incompatible_merge_fixed_and_default_shell_env +# Frozen lockfile +common --lockfile_mode=error + ############################### # Filesystem interactions # ###############################