$ bazel 2020/08/31 17:10:27 could not resolve the version 'latest' to an actual version number: could not get releases from github.com/bazelbuild/bazel: could not download list of Bazel releases from github.com/bazelbuild: unexpected status code while reading https://api.github.com/repos/bazelbuild/bazel/releases: 403
导致编译过程受阻,非常麻烦。
原理
出现这个问题的原因是:
1 2
curl https://api.github.com/repos/bazelbuild/bazel/releases {"message":"API rate limit exceeded for 100.101.102.103. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}