tofuutils / tenv

OpenTofu / Terraform / Terragrunt and Atmos version manager
https://tofuutils.github.io/tenv/
Apache License 2.0
631 stars 29 forks source link

Terragrunt command not found #223

Open gabrieloshiro opened 1 month ago

gabrieloshiro commented 1 month ago

Describe the bug I get the message

command not found: terragrunt

After installing terragrunt via tenv

To Reproduce Steps to reproduce the behavior:

  1. Follow ubuntu instructions to install tenv
  2. install terraform and terragrunt via tenv (using tenv without parameters)
  3. execute terragrunt

Expected behavior Terragrunt is in the PATH variable and it works properly.

Environment (please complete the following information):

kvendingoldo commented 1 month ago

Hi @gabrieloshiro, Thank you for reporting. Which version of tenv do you use?

gabrieloshiro commented 1 month ago

tenv version v3.0.0 (I edited the original post)

Webgardener commented 1 month ago

reproducing same behavior with 3.0.0

Nmishin commented 1 month ago

@gabrieloshiro @Webgardener did you install tenv via snap or dpkg? could you please show the output of command which tenv?

applevladko commented 1 month ago

I install tenv into docker container for pipelines using

RUN curl -Lo tenv.tar.gz "https://github.com/tofuutils/tenv/releases/download/v${TENV_VERSION}/tenv_v${TENV_VERSION}_$(uname)_x86_64.tar.gz" && \ tar -xzf tenv.tar.gz && \ mv tenv /usr/local/bin/ && \ rm tenv.tar.gz && \ ln -s /var/task/* /usr/local/bin && \ tenv --version

update-path is not working, I believe because of there are no binaries in folder /root/.tenv/bin which is exported by that command. there are no folder /root/.tenv/bin at all. Binaries are placed into /root/.tenv/Terraform/$version/terraform

so I had to add "ln -s /var/task/* /usr/local/bin" to make it work as binaries are present in task (for pipelines scenario)

dvaumoron commented 1 month ago

the proxy binaries are in the archive tenv.tar.gz, you should copy them at the same place as tenv

update-path is meant to resolve conflict with other tool installation and suppose that the proxy binaries are in the same folder than tenv, it can not resolve an issue with missing binaries.

kvendingoldo commented 3 weeks ago

@applevladko does it solve your issue?

Webgardener commented 1 week ago

No i need to remain on version 2.7.9 of tenv, which work well. I used dpkg to install tenv

kvendingoldo commented 1 week ago

I'll try on the weekend 3.X version; @Webgardener which os do you use? Give me a name and version, pls

gabrieloshiro commented 1 week ago

@gabrieloshiro @Webgardener did you install tenv via snap or dpkg? could you please show the output of command which tenv?

Sorry for the late response, I installed it via snap.

I also confirm that uninstalling everything and reverting to version 2.7.9 solves the issue.

Webgardener commented 1 week ago

I'll try on the weekend 3.X version; @Webgardener which os do you use? Give me a name and version, pls

Debian GNU/Linux 12 \n \l