cunymatthieu / tgenv

Terragrunt version manager
MIT License
223 stars 70 forks source link

tgenv list-remote returns empty set on MacOS Monterey #28

Closed akrymets closed 2 years ago

akrymets commented 2 years ago

tgenv version

tgenv 0.0.3-2-gdd720f6

List test results

$ /opt/terraform/switcher/tgenv/test/test_list.sh
### List local versions
tgenv: tgenv-install: [ERROR] No versions matching '0.12.15' found in remote
tgenv: test/test_list.sh: Test Failed: Install of version 0.12.15 failed
tgenv: tgenv-install: [ERROR] No versions matching '0.12.9' found in remote
tgenv: test/test_list.sh: Test Failed: Install of version 0.12.9 failed
tgenv: tgenv-install: [ERROR] No versions matching '0.11.1' found in remote
tgenv: test/test_list.sh: Test Failed: Install of version 0.11.1 failed
tgenv: tgenv-install: [ERROR] No versions matching '0.10.0' found in remote
tgenv: test/test_list.sh: Test Failed: Install of version 0.10.0 failed
tgenv: tgenv-install: [ERROR] No versions matching '0.9.3' found in remote
tgenv: test/test_list.sh: Test Failed: Install of version 0.9.3 failed
tgenv: tgenv-list: [ERROR] No versions available. Please install one with: tgenv install
tgenv: test/test_list.sh: Test Failed: List mismatch.
Expected:
0.12.15
0.12.9
0.11.1
0.10.0
0.9.3
Got:

===== The following list tests failed =====
    Install of version 0.12.15 failed
    Install of version 0.12.9 failed
    Install of version 0.11.1 failed
    Install of version 0.10.0 failed
    Install of version 0.9.3 failed
    List mismatch.
Expected:
0.12.15
0.12.9
0.11.1
0.10.0
0.9.3
Got:

At the same time it works fine on Ubuntu 20.04 and MacOS Big Sur

akrymets commented 2 years ago

I found an origin of the issue: $curl https://api.github.com/repos/gruntwork-io/terragrunt/tags?per_page=1000 returns

{
  "message": "API rate limit exceeded for XXX.XXX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
...
}

So probably this is a local issue.