HTTP-401 when building Gerrit after Starlark warning fix

189 views
Skip to first unread message

Sven Selberg

unread,
Sep 11, 2019, 4:17:32 AM9/11/19
to Repo and Gerrit Discussion
When trying to build (behind proxy) I get [1].

Doesn't work for v3.0.2-16-g7a6bb496e6 (where [2] was merged into stable-3.0)
Works for v3.0.2-3-gacddb599a3 (other parent of v3.0.2-16-g7a6bb496e6)

/Sven

[1]
ERROR: An error occurred during the fetch of repository 'rules_python':
   java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_python/archive/9d68f24659e8ce8b736590ba1e4418af06ec2552.tar.gz] to /home/svense/.cache/bazel/_bazel_svense/528eef108849d87c4c917dbf3d766f30/external/rules_python/9d68f24659e8ce8b736590ba1e4418af06ec2552.tar.gz: GET returned 401 Unauthorized

[2] https://gerrit-review.googlesource.com/c/gerrit/+/232534 - "Bazel: Add fixes for --incompatible_load_{java|python}_rules_from_bzl"

Gert van Dijk

unread,
Sep 11, 2019, 6:37:42 AM9/11/19
to Sven Selberg, Repo and Gerrit Discussion
"GET returned 401 Unauthorized"

Sounds like Bazel 0.29.0 issue 9327 [1] (unrelated to proxy). Should
be fixed in 0.29.1 / 1.0.0rc2 (now in .bazelversion of stable-3.0).
Could you see if that works?

When using Bazelisk with a .bazelversion showing 0.29.0, you may want
to temporarily set USE_BAZEL_VERSION=0.29.1 as environment variable.

HTH

[1]: https://github.com/bazelbuild/bazel/issues/9327

Sven Selberg

unread,
Sep 11, 2019, 7:07:37 AM9/11/19
to Repo and Gerrit Discussion
Yup, works with bazel 0.29.1.

Thanks!

On Wednesday, September 11, 2019 at 12:37:42 PM UTC+2, Gert van Dijk wrote:

Sven Selberg

unread,
Sep 11, 2019, 7:13:10 AM9/11/19
to Repo and Gerrit Discussion
Uploaded a change to bump bazel version on stable-2.15:

/Sven
Reply all
Reply to author
Forward
0 new messages