Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel mirror of bazel-toolchains 3.2.0 broken link #891

Open
leighmcculloch opened this issue Jul 7, 2020 · 1 comment
Open

Bazel mirror of bazel-toolchains 3.2.0 broken link #891

leighmcculloch opened this issue Jul 7, 2020 · 1 comment

Comments

@leighmcculloch
Copy 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?

@smukherj1
Copy link
Collaborator

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.

yashykt pushed a commit to grpc/grpc that referenced this issue Jun 14, 2022
See bazelbuild/bazel-toolchains#891 (comment)
and #27410 (comment)

Seems like the mirror for bazel toolchains changed the URL and they
mirror downloads but not archives. This should fix any issues with
missing mirror and workaround bazelbuild/bazel-toolchains#972

Signed-off-by: Vihang Mehta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants