install Bazel: https://docs.bazel.build/vers.
when running bazel run /: gazelle
according to the official Bazel documentation. Always report an error:
dell@DESKTOP-MRJOU2E MINGW64 /d/workspace/www/go_work/src/golang_learning
$ bazel run //:gazelle
Loading:
Loading: 0 packages loaded
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
Analyzing: target //:gazelle (1 packages loaded)
ERROR: Analysis of target "//:gazelle" failed; build aborted: no such package "@org_golang_x_tools//go/analysis": java.io.IOException: thread interrupted
INFO: Elapsed time: 56.749s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (1 packages loaded)
tried powershell, cmd, git command line tools, also hung up ss and used set ALL_PROXY= "socks5://127.0.0.1:1080"
to let command line tools act as agents, but it didn"t work, for some unknown reason.