-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
http_archive is not able to fetch dl.bintray.com/boostorg #5932
Comments
However, bazel will generate a `GET returned 403 Forbidden` error without much information. See example below for details. [...]
Thanks for the detailed bug report. That made it very easy to reproduce. By now
I managed to narrow down the error to the mergeUrls function
https://github.com/bazelbuild/bazel/blob/2c4a0b7bddc5cd9fa83b7c445afced1a984bb785/src/main/java/com/google/devtools/build/lib/bazel/repository/downloader/HttpUtils.java#L73
In fact, replacing line https://github.com/bazelbuild/bazel/blob/2c4a0b7bddc5cd9fa83b7c445afced1a984bb785/src/main/java/com/google/devtools/build/lib/bazel/repository/downloader/HttpUtils.java#L66
by a simple
`URL result = URI.create(newLocation).toURL();`
makes the download succeed.
Currently working on a fix for the mergeUrls function.
…--
Klaus Aehlig
Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Paul Terence Manicle, Halimah DeLaine Prado
|
… --
Klaus Aehlig
Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Paul Terence Manicle, Halimah DeLaine Prado
|
Thanks for the quick fix @aehlig !👍 🎉 |
Awesome! We (rules scala) were also severely impacted by this. Thank you
both!
cc @johnynek
…On Mon, 20 Aug 2018 at 17:56 Yong Tang ***@***.***> wrote:
Thanks for the quick fix @aehlig <https://github.com/aehlig> !👍 🎉
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5932 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFy2SsYzARrZ4rH07NaTgJvx_hEa1ks5uSs4ugaJpZM4WC8ap>
.
|
I am facing this issue. How can the fix be used before it's part of a release? Even the Compiling Bazel from Source instructions require a distribution zip to be available. |
I see this is marked as closed but it does still seem to be an issue, for me at least. I imagine that this is just because I don't know what to do. Is there a way to depend on an explicit previous version of the downloader (or target future version)? I have just been using the packaged version of bazel on ubuntu. Do I need to build my own version from the latest source? Will that solve the problem? (I'm afraid that I don't fully understand how this became an issue in the first place). I have also tried to copy the relevant tarball into the expected location by hand but it seems to be deleted each time. Maybe there is a temporary work around like this? Many thanks in advance for any help. |
You can take the latest released bazel and then |
I had a problem building the latest version from source but for the sake of anyone coming across this thread, upgrading to latest testing version of bazel on ubuntu according to the instructions here made the issue go away. At time of writing, this was version 0.17.1rc1. Many thanks for your help. |
Description of the problem / feature request:
While working on a tensorflow PR tensorflow/tensorflow#19461 to add the Parquet support, I needed to add the boost library. The download link of boost library (https://www.boost.org/users/download/) is in
dl.bintray.com
:https://dl.bintray.com/boostorg/release/1.67.0/source/
However, bazel will generate a
GET returned 403 Forbidden
error without much information. See example below for details.Feature requests: what underlying problem are you trying to solve with this feature?
N/A
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I have reduced the test case with the following example:
I am able to download the package manually through
curl
(See full output at the end):What operating system are you running Bazel on?
What's the output of
bazel info release
?If
bazel info release
returns "development version" or "(@Non-Git)", tell us how you built Bazel.N/A
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?N/A
Have you found anything relevant by searching the web?
No.
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: