workspace: introduce bazel downloader config and replace bazeldnf mirror
This rather small change does rework the way we cache our dependencies
by instructing bazel to fetch everything through a custom proxy. See
//build/mirror_proxy:README.me for more infos.
Closes monogon-dev/monogon#178
Change-Id: Ic671fc8233a1cbf37427bbc96339ea8108310e21
Reviewed-on: https://review.monogon.dev/c/monogon/+/3686
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/.bazelrc.sandboxroot b/.bazelrc.sandboxroot
index 5fce09a..db12cfd 100644
--- a/.bazelrc.sandboxroot
+++ b/.bazelrc.sandboxroot
@@ -7,6 +7,8 @@
# No host CC platform - we only want pure Go for the sandboxroot
build --host_platform=@io_bazel_rules_go//go/toolchain:linux_amd64
+common --experimental_downloader_config=build/bazel/bazel_downloader.cfg
+
# Shared with main .bazelrc
try-import %workspace%/.bazelrc.user
try-import %workspace%/ci.bazelrc