tgswitch icon indicating copy to clipboard operation
tgswitch copied to clipboard

Automatic download with tgswitch 0.6.0 not working

Open Tiduster opened this issue 1 year ago • 1 comments

Hello ! On my fedora, tgswitch automatic download feature is not working:

$ tgswitch
Terragrunt file found: /home/cpatry/GIT/si-paiement/terraform/terragrunt.hcl
Reading required version from constraint: >= 0.36, < 0.36.1
Matched version: 0.36.0
Installing terragrunt at /home/cpatry/bin
Downloading https://warrensbox.github.io/terragunt-versions-list/index.json/v0.36.0/terragrunt_linux_amd64 to terragrunt_linux_amd64
Downloading ...
9339 bytes downloaded.
Switched terragrunt to version "0.36.0" 

$ tgswitch 0.36.0
Installing terragrunt at /home/cpatry/bin
Switched terragrunt to version "0.36.0" 

$ rm ~/.terragrunt.versions/terragrunt_0.36.0
$ tgswitch 0.36.0
Installing terragrunt at /home/cpatry/bin
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.36.0/terragrunt_linux_amd64 to terragrunt_linux_amd64
Downloading ...
36462548 bytes downloaded.
Switched terragrunt to version "0.36.0"

The first time, tgswitch download the file from the wrong repo? And I obtained only a 404 HTML file.

If I just ask for a specific version, the binary is downloaded correctly (look at the size in bytes)

Thanks for the tool.

Tiduster avatar Mar 20 '23 10:03 Tiduster