golicense icon indicating copy to clipboard operation
golicense copied to clipboard

"Rate limited by github"

Open rfay opened this issue 6 years ago • 2 comments

Mostly when I get this to work I get a bunch of things like ⚠️ github.com/aws/aws-sdk-go rate limited by GitHub, waiting 46m59.238793s

Seems this may not be altogether practical with github the way it is.

rfay avatar Dec 04 '18 14:12 rfay

Is this with a GitHub token set as well? I've been running golicense pretty regularly and haven't hit this issue. Unauthenticated and you hit it after almost one use. 😄 But authenticated you should get 5000 req/hr which is hefty for what golicense is doing (about 1 req per dependency in general, maybe 2 at times).

mitchellh avatar Dec 04 '18 17:12 mitchellh

No, it wasn't, I'd missed the doc on that

I recommend that you change the error to add the link in about GITHUB_TOKEN.

Edit: And you might as well abort on the first rate-limit, it doesn't make any sense to continue I don't think.

rfay avatar Dec 04 '18 17:12 rfay