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

bump from 2.0.3 to 2.0.4 results in failed terragrunt install on Ubuntu #166

Closed
corporate-gadfly opened this issue Jun 12, 2024 · 3 comments
Labels
bug Something isn't working os: linux

Comments

@corporate-gadfly
Copy link

Looks like #164 breaks Ubuntu install for terragrunt. Downgrading to 2.0.3 fixes the issue.

We use Azure hosted agents for Azure DevOps pipeline. The install procedure looks as follows:

set -euo pipefail

# version to download
VERSION=2.0.3

# remove any existing file
rm -f "tenv_v${VERSION}_amd64.deb"
# download .deb for tenv
curl -LOJ "https://github.com/tofuutils/tenv/releases/download/v${VERSION}/tenv_v${VERSION}_amd64.deb"
# install tenv
sudo dpkg -i "tenv_v${VERSION}_amd64.deb"

# install terraform
tenv tf install
# install terragrunt
tenv tg install
# update path
export PATH=$(tenv update-path)
# display terraform version
echo "Terraform version: $(terraform --version)"
echo "Terragrunt version: $(terragrunt --version)"

With 2.0.4, this results in output that looks like as follows:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 21.8M  100 21.8M    0     0  31.6M      0 --:--:-- --:--:-- --:--:-- 31.6M
Selecting previously unselected package tenv.
(Reading database ... 269551 files and directories currently installed.)
Preparing to unpack tenv_v2.0.4_amd64.deb ...
Unpacking tenv (2.0.4) ...
Setting up tenv (2.0.4) ...
Resolved version from .terraform-version : 1.8.5
Installing Terraform 1.8.5
Fetching release information from https://releases.hashicorp.com/terraform/1.8.5/index.json
Downloading https://releases.hashicorp.com/terraform/1.8.5/terraform_1.8.5_linux_amd64.zip
Downloading https://releases.hashicorp.com/terraform/1.8.5/terraform_1.8.5_SHA256SUMS
Downloading https://releases.hashicorp.com/terraform/1.8.5/terraform_1.8.5_SHA256SUMS.sig
Downloading https://www.hashicorp.com/.well-known/pgp-key.txt
Installation of Terraform 1.8.5 successful
Resolved version from .terragrunt-version : 0.59.2
Installing Terragrunt 0.59.2
Fetching release information from https://api.github.com/repos/gruntwork-io/terragrunt/releases/tags/v0.59.2
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.59.2/terragrunt_linux_amd64
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.59.2/SHA256SUMS
Installation of Terragrunt 0.59.2 successful
Terraform version: Terraform v1.8.5
on linux_amd64
Terragrunt version: Failure during terragrunt call : fork/exec /home/vsts/.tenv/Terragrunt/0.59.2/terragrunt: no such file or directory

Notice the last line.

@kvendingoldo kvendingoldo added the bug Something isn't working label Jun 13, 2024
@kvendingoldo
Copy link
Collaborator

#168
@corporate-gadfly can you check the version 2.0.6, please?

@corporate-gadfly
Copy link
Author

2.0.6 works for me, TYVM @kvendingoldo.

@kvendingoldo
Copy link
Collaborator

@corporate-gadfly great! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os: linux
Projects
None yet
Development

No branches or pull requests

2 participants