-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistently tgswitch command returned "Unable to get release from repo" #88
Comments
Same problem here. Fails randomly
|
Same here. Switched through a couple of versions, stopped working. |
same issue |
Also seeing this, I've tried tgswitch versions 0.4.326, 0.4.315 & 0.3.308. UPDATE I suspect Github have changed their rate-limiting, and tgswitch is now failing because of that. |
I've created a fork of this project with fixes in, so that it only hits Github if the version requested doesn't already exist in ~/.terragrunt.versions/. I suspect the way the code is actually accessing github is generating too many requests, but that's beyond my abilities to fix, as I've not really dealt with Go before. Upstream may not want to take this change as-is, but it works for me. Clone it, install go (yum install epel-release && yum install golang), then run "make release". https://github.com/steven-edgar/tgswitch. I've tested with switching between existing versions and downloading a new one, and using a .tgswitchrc file to specify the version, all using the '-b' flag to set the bin location as I don't have access to /usr/local/bin on this system, so haven't tested that. |
Same here. |
Thanks for your efforts @steven-edgar; I think you've hit the nail on the head. I tried your code but it didn't work initially. I then figured out that I was still rate limited at the time. After that period lapsed it has worked well for me. The link mentioned (https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting) makes reference to a URL to check the API usage. HOWEVER, that hits the API and uses up your quota! Doh! The quota is 60 requests per hour. There is a check that does not hit your API rate limit which can be found at: https://docs.github.com/en/rest/reference/search#rate-limit I've created an alias to put this into a useable format. This probably ought to be a bash or zsh function but it works. It does require jq JSON parser
|
@Ian-T-Price @korenshoshan @Vishwas1976 @mihica123 @pulakiitr @nadirollo Please get the latest version of tgswitch - Version: 0.5.378 #98 . See how to get latest here. The new version of |
This is working as described; my personal API count is unaffected by downloading different versions of terragrunt. Many thanks for your time and effort to fix this issue; much appreciated. I consider this issue closed |
Continue to see this with v 0.6.0 on a Debian Linux box. |
The text was updated successfully, but these errors were encountered: