You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you specify a *_LIST_URL tenv will also use that URL to modify the *_REMOTE_URL when downloading. This means that you cannot separate listing from downloading. For example, I specifying TF_LIST_URL to https://somewhere/api/github/tenv/gruntwork-io/terragrunt/releases/ and tenv tries to then download the chosen release from https/somewhere/api/github/tenv/gruntwork-io/terragrunt/releases/gruntwork-io/terragrunt/releases/download/v0.69.3/terragrunt_linux_amd64, which is clearly incorrect.
You can work around this by specifying both URLs, but the issue is that it means you cannot let LIST do its thing and say WHERE to download the release from, sort of defeating the purpose.
To Reproduce
Steps to reproduce the behavior:
Specify *_LIST_URL env variable.
Perform an operation using the CLI for the tool you specified the URL.
Observe that download fails due to the LIST URL being used as the head of download.
Expected behavior
I would expect the LIST_URL to only be used for listing the downloads and then use the URL specified in the download for downloading.
Screenshots
Now screenshot
Environment (please complete the following information):
Describe the bug
If you specify a
*_LIST_URL
tenv will also use that URL to modify the*_REMOTE_URL
when downloading. This means that you cannot separate listing from downloading. For example, I specifyingTF_LIST_URL
tohttps://somewhere/api/github/tenv/gruntwork-io/terragrunt/releases/
andtenv
tries to then download the chosen release fromhttps/somewhere/api/github/tenv/gruntwork-io/terragrunt/releases/gruntwork-io/terragrunt/releases/download/v0.69.3/terragrunt_linux_amd64
, which is clearly incorrect.You can work around this by specifying both URLs, but the issue is that it means you cannot let
LIST
do its thing and say WHERE to download the release from, sort of defeating the purpose.To Reproduce
Steps to reproduce the behavior:
*_LIST_URL
env variable.Expected behavior
I would expect the
LIST_URL
to only be used for listing the downloads and then use the URL specified in the download for downloading.Screenshots
Now screenshot
Environment (please complete the following information):
Additional context
I believe this comes from:
https://github.com/tofuutils/tenv/blob/main/config/remote.go#L122-L128
The text was updated successfully, but these errors were encountered: