From 296fa0735db06a539b28fab4ec343f2967f6f657 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Thu, 2 May 2024 15:34:52 +0100 Subject: [PATCH] Make runfiles work on Windows --- .bazelrc | 5 +++++ examples/gazelle/.bazelrc | 5 ++--- examples/tests_and_lints/.bazelrc | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 examples/tests_and_lints/.bazelrc diff --git a/.bazelrc b/.bazelrc index e315b0ed..1a0ca25e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,10 @@ # Settings that apply only to CI are in .github/workflows/ci.bazelrc +# Make things work on Windows +common --enable_platform_specific_config +startup --windows_enable_symlinks +build:windows --enable_runfiles + # Pin java versions build:jdk11 --java_runtime_version=remotejdk_11 build:jdk11 --java_language_version=11 diff --git a/examples/gazelle/.bazelrc b/examples/gazelle/.bazelrc index b3179515..77496e13 100644 --- a/examples/gazelle/.bazelrc +++ b/examples/gazelle/.bazelrc @@ -1,5 +1,4 @@ +# Make things work on Windows common --enable_platform_specific_config - -# https://bazel.build/docs/windows#symlink startup --windows_enable_symlinks -run:windows --enable_runfiles +build:windows --enable_runfiles diff --git a/examples/tests_and_lints/.bazelrc b/examples/tests_and_lints/.bazelrc new file mode 100644 index 00000000..77496e13 --- /dev/null +++ b/examples/tests_and_lints/.bazelrc @@ -0,0 +1,4 @@ +# Make things work on Windows +common --enable_platform_specific_config +startup --windows_enable_symlinks +build:windows --enable_runfiles