Closed IBBLdeSS closed 4 months ago
It looks like it's a problem with the URL https://releases.bazel.build/6.0.0-pre.20220421.3/release/bazel-6.0.0-pre.20220421.3-linux-x86_64..., the web page has no content, but I don't know how to fix it
The correct URL is https://releases.bazel.build/6.0.0/rolling/6.0.0-pre.20220421.3/bazel-6.0.0-pre.20220421.3-linux-x86_64
@IBBLdeSS How are you specifying the bazel version? In .bazelversion
file? Can you share the content?
The correct URL is
https://releases.bazel.build/6.0.0/rolling/6.0.0-pre.20220421.3/bazel-6.0.0-pre.20220421.3-linux-x86_64
Oh ,yes ,but I don't know how to change the URL
The content of the previous .bazelversion
file was:
@IBBLdeSS How are you specifying the bazel version? In
.bazelversion
file? Can you share the content?
I couldn't reproduce this, do you have any other Bazelisk related environment variable set?
Thanks for the tip, I manually downloaded bazel-6.0.0-pre.20220421.3-linux-x86_64 and put it in the specified folder:home/.cache/bazelisk/bin/bazelbuild, resolved the URL error,but I got new errors:
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Repository npm instantiated at:
/home/ss/onos/onos/WORKSPACE:173:13: in
I couldn't reproduce this, do you have any other Bazelisk related environment variable set?
Now facing these problems:
$ bazel build onos WARNING: Download from https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.19.8/rules_go-v0.19.8.tar.gz failed: class java.net.ConnectException Connection refused (Connection refused) WARNING: Download from https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz failed: class java.net.ConnectException Connection refused (Connection refused) INFO: Analyzed target //:onos (0 packages loaded, 0 targets configured). INFO: Found 1 target... ERROR: /home/ss/onos/onos/web/gui/BUILD:98:8: Executing genrule //web/gui:_onos-gui-npm-install failed: (Exit 1): bash failed: error executing command (from target //web/gui:_onos-gui-npm-install) /bin/bash -c ... (remaining 1 argument skipped)
Use --sandbox_debug to see verbose messages from the sandbox Target //:onos failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /home/ss/onos/onos/web/gui/BUILD:241:8 Executing genrule //web/gui:onos-web-gui failed: (Exit 1): bash failed: error executing command (from target //web/gui:_onos-gui-npm-install) /bin/bash -c ... (remaining 1 argument skipped)
Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 511.988s, Critical Path: 511.45s INFO: 2 processes: 2 internal. FAILED: Build did NOT complete successfully
Why are you using this specific Bazel version? It's a prerelease version for Bazel 6.0, which doesn't really make sense to use nowadays.
Your options:
The failures you mentioned in the last comment are unrelated to Bazelisk - Bazel cannot download some external dependencies, maybe due to a firewall or some other network settings.
from Gerrit
git clone https://gerrit.onosproject.org/onos