diff --git a/.bazelrc b/.bazelrc index 5f9c50b5c49..24fc95445bc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,6 +6,12 @@ import %workspace%/build/bazelrc/debug.bazelrc import %workspace%/build/bazelrc/hermetic-cc.bazelrc import %workspace%/build/bazelrc/performance.bazelrc +# hermetic_cc_toolchain v3.0.1 required changes. +common --enable_platform_specific_config +build:linux --sandbox_add_mount_pair=/tmp +build:macos --sandbox_add_mount_pair=/var/tmp +build:windows --sandbox_add_mount_pair=C:\Temp + # E2E run with debug gotag test:e2e --define gotags=debug diff --git a/WORKSPACE b/WORKSPACE index d1f049cf872..8980e519de4 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -16,12 +16,14 @@ load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") rules_pkg_dependencies() +HERMETIC_CC_TOOLCHAIN_VERSION = "v3.0.1" + http_archive( name = "hermetic_cc_toolchain", - sha256 = "973ab22945b921ef45b8e1d6ce01ca7ce1b8a462167449a36e297438c4ec2755", - strip_prefix = "hermetic_cc_toolchain-5098046bccc15d2962f3cc8e7e53d6a2a26072dc", + sha256 = "3bc6ec127622fdceb4129cb06b6f7ab098c4d539124dde96a6318e7c32a53f7a", urls = [ - "https://github.com/uber/hermetic_cc_toolchain/archive/5098046bccc15d2962f3cc8e7e53d6a2a26072dc.tar.gz", # 2023-06-28 + "https://mirror.bazel.build/github.com/uber/hermetic_cc_toolchain/releases/download/{0}/hermetic_cc_toolchain-{0}.tar.gz".format(HERMETIC_CC_TOOLCHAIN_VERSION), + "https://github.com/uber/hermetic_cc_toolchain/releases/download/{0}/hermetic_cc_toolchain-{0}.tar.gz".format(HERMETIC_CC_TOOLCHAIN_VERSION), ], ) @@ -155,7 +157,7 @@ http_archive( urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip", "https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip", - ], + ], ) # Override default import in rules_go with special patch until