Skip to content

Commit 9cf66f8

Browse files
committed
Replace .bazelversion files with symlinks
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.
1 parent d55d36b commit 9cf66f8

File tree

20 files changed

+16
-60
lines changed

20 files changed

+16
-60
lines changed

dt_patches/compiler_sources/.bazelrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

dt_patches/compiler_sources/.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

dt_patches/test_dt_patches/.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.bazelversion

dt_patches/test_dt_patches_user_srcjar/.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.bazelversion

examples/crossbuild/.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/crossbuild/.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.bazelversion

examples/overridden_artifacts/.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.bazelversion

0 commit comments

Comments
 (0)