Skip to content

Commit a1923f6

Browse files
committed
build: remove redundant Bazel lockfile update workarounds
Renovate now natively supports updating Bazel lockfiles. This change removes the `postUpgradeTasks` workaround in Renovate presets and a redundant synchronization step in the `sync-all-modules.sh` script that were previously used to manually update Bazel lockfiles.
1 parent a89d902 commit a1923f6

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

renovate-presets/default.json5

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,6 @@
4242
// GENERAL GROUPING & UPDATE BEHAVIOR
4343
// ============================================================================
4444

45-
// Enable 'postUpdateTasks' for changes that effect the BAZEL lockfile or generated files.
46-
// Renovate does not update Bazel lockfile for the time being.
47-
// Workaround for https://github.com/renovatebot/renovate/issues/25557
48-
{
49-
postUpgradeTasks: {
50-
matchManagers: ['bazel', 'bazel-module', 'bazelisk'],
51-
commands: [
52-
'bash -c "git restore .npmrc || true"', // If `.npmrc` doesn't exist, avoid a hard error.
53-
'bazel mod deps --lockfile_mode=update',
54-
],
55-
// This is theory should be `branch` but in some cases this is causing the command not to
56-
// run when in the same branch there are mixtures of update types by different managers.
57-
executionMode: 'update',
58-
},
59-
},
60-
6145
// Enable 'postUpdateTasks' for changes that effect the typescript and pnpm versions.
6246
// This is to ensure that the `MODULE.bazel` is updated with the correct versions.
6347
{

tools/sync-all-modules.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ export BAZEL="$(git rev-parse --show-toplevel)/node_modules/.bin/bazel"
66

77
echo "Starting synchronization of all Bazel modules..."
88

9-
# Update the root lockfile. This is needed for the sync-module-bazel command to work.
10-
"$BAZEL" mod deps --lockfile_mode=update
11-
129
# Find and store all MODULE.bazel directories
1310
module_dirs=()
1411
while IFS= read -r -d '' module_file; do

0 commit comments

Comments
 (0)