Skip to content

Conversation

@mbland
Copy link
Collaborator

@mbland mbland commented Oct 27, 2025

Description

Replaces all nested .bazelversion files with symbolic links to the top-level .bazelversion file. Removes scripts/sync-bazelversion.sh.

Also removes dt_patches/compiler_sources/.bazel{rc,version} since they're not required by any tests.

Motivation

I missed updating the .bazelversion files in #1778 because I forgot to run scripts/sync-bazelversion.sh. I'd added this script previously to avoid creating symlinks that might break Windows users that don't have symlinks enabled. At the same time, .bazelversion doesn't have an import ../.bazelversion directive like .bazelrc does.

However, it seems Windows has supported symlinks for a while, and users shouldn't have any trouble enabling them on their workstations. We also already use them for protobuf.patch files throughout the nested repos. So it's time to use symlinks for .bazelversion files as well, to ensure these files don't fall out of sync again.

Replaces all nested `.bazelversion` files with symbolic links to the
top-level `.bazelversion` file. Removes `scripts/sync-bazelversion.sh`.

Also removes `dt_patches/compiler_sources/.bazel{rc,version}` since
they're not required by any tests.

---

I missed updating the `.bazelversion` files in bazel-contrib#1778 because I forgot to
run `scripts/sync-bazelversion.sh`. I'd added this script previously to
avoid creating symlinks that might break Windows users that don't have
symlinks enabled. At the same time, `.bazelversion` doesn't have an
`import ../.bazelversion` directive like `.bazelrc` does.

However, it seems Windows has supported symlinks for a while, and users
shouldn't have any trouble enabling them on their workstations. We also
already use them for `protobuf.patch` files throughout the nested repos.
So it's time to use symlinks for `.bazelversion` files as well, to
ensure these files don't fall out of sync again.
@mbland mbland merged commit c1a8c78 into bazel-contrib:master Oct 28, 2025
1 check passed
@mbland mbland deleted the bazelversion-symlinks branch October 28, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants