Skip to content
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

Unable to download new version through the proxy #132

Open
asvinours opened this issue Sep 29, 2022 · 1 comment · May be fixed by #138
Open

Unable to download new version through the proxy #132

asvinours opened this issue Sep 29, 2022 · 1 comment · May be fixed by #138

Comments

@asvinours
Copy link

asvinours commented Sep 29, 2022

Hello,

I noticed that the behavior of tgswitch is different depending if the version selection is interactive or not.

Example:

root@14c36018b7f9:/data# ls
terragrunt.hcl
root@14c36018b7f9:/data# tgswitch
Terragrunt file found: /data/terragrunt.hcl
Reading required version from constraint: ~> 0.38
Matched version: 0.39.0
Downloading https://warrensbox.github.io/terragunt-versions-list/index.json/v0.39.0/terragrunt_linux_amd64 to terragrunt_linux_amd64
Downloading ...
9339 bytes downloaded.
Switched terragrunt to version "0.39.0" 

root@14c36018b7f9:/data# terragrunt version
/usr/local/bin/terragrunt: line 1: syntax error near unexpected token `newline'
/usr/local/bin/terragrunt: line 1: `<!DOCTYPE html>'

but if using interactive mode:

root@50d1fa5608b5:/data# ls -l
total 0
root@50d1fa5608b5:/data# tgswitch
✔ 0.39.0
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.39.0/terragrunt_linux_amd64 to terragrunt_linux_amd64
Downloading ...
35393268 bytes downloaded.
Switched terragrunt to version "0.39.0" 

root@50d1fa5608b5:/data# terragrunt --version
terragrunt version v0.39.0

The mirror URL specified here does not seem to be able to handle the latest releases automatically.

This is causing issues as a new release of terragrunt means all our CI pipelines are now failing.

Note: Ideally tgswitch would return an error if the download URL is not a 200, so we can see there's a download issue before executing terragrunt

@dracut5
Copy link

dracut5 commented Oct 6, 2022

The same problem: wanted to manage versions in terragrunt.hcl, but got an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants