tgswitch
tgswitch copied to clipboard
Fix incorrect proxyURL with terragruntURL
Fixed #133
I believe this function should not be called with the proxyURL (which is the URL to your cache of Terragrunt versions), instead the Terragrunt mirror URL. Ultimately this is passed through to the download function, which uses the mirrorURL (parameter) to construct the download path for a version.
This is why we sometimes see 404s (when this particular block/case is encountered) - it's trying to download the binary from this repo!
Hope the PR Is okay and this makes sense?