Bazel mirror of bazel-toolchains 3.2.0 broken link
Hi, I'm seeing warnings building common projects that have the bazel-toolchains as a dependency because the following mirror.bazel.build URL is 404ing.
https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/3.2.0.tar.gz
An example of one project whose bazel build process is displaying warnings about this is the @google Tink project: https://github.com/google/tink/blob/23ce810c979b1105fe6a657a5667a7275764b411/tink_base_deps.bzl#L69-L79
This is the error I see:
$ git clone https://github.com/google/tink
$ cd tink/tools/tinkey
$ bazel build tinkey
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/3.2.0.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
...
According to the releases page the bazel-toolchains (link below) is supposed to be available at two URLs, one being the mirror, but it seems the mirror is missing version 3.2.0.
https://releases.bazel.build/bazel-toolchains.html
Is the mirror being maintained?
Should we continue to use the mirror as a dependency location?
Hi @leighmcculloch,
Yes the mirror is still being maintained. We switched to using release archives instead of commit archives a while ago:
$ wget https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.2.0/bazel-toolchains-3.2.0.tar.gz
--2020-07-07 09:50:39-- https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.2.0/bazel-toolchains-3.2.0.tar.gz
Resolving mirror.bazel.build (mirror.bazel.build)... 130.211.22.235
Connecting to mirror.bazel.build (mirror.bazel.build)|130.211.22.235|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 859433 (839K) [application/x-gzip]
Saving to: ‘bazel-toolchains-3.2.0.tar.gz’
bazel-toolchains-3.2.0.tar.gz 100%[======================================================================================================>] 839.29K --.-KB/s in 0.03s
2020-07-07 09:50:40 (27.7 MB/s) - ‘bazel-toolchains-3.2.0.tar.gz’ saved [859433/859433]
Looks like our release notes generator still generates the old links for the list of "previous releases". I'll look into having that fixed.