setup-go: API rate limit exceeded

I’m getting this error fairly consistently when using the action:

Run actions/setup-go@v1.0.2
  with:
    go-version: 1.10
##[error]API rate limit exceeded for 199.7.166.17. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
##[error]Node run failed with exit code 1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 10
  • Comments: 18 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Friendly ping @damccorm - any chance this could get attention soon? Actions can’t be used as CI for Go until this is fixed, since builds start failing after just a dozen or so builds. The golang.org approach suggested above should work, and there’s even a PR ready 😃

@kjk @mvdan @damccorm I’ve updated API call to use the golang-dl one. I didn’t know about this.

Hmm, I still sometimes run into API rate limit errors with versions like 1.13. It fails with no helpful error when I specify 1.13.0, so I think it’s not doing the same as 1.13.x.

It should be possible to download a specific version of Go with zero GitHub API calls, as one can download Go straight from golang.org. It’s even possible to list all released versions via JSON without even hitting GitHub: https://golang.org/dl/?mode=json&include=all

Big thanks to @hfaulds for taking care of merging the PR! I think this can be closed for now. I’ll shout if I see these flakes again.