Skip to content

tfenv: tfenv-use: [ERROR] 'terraform --version' failed. Something is seriously wrong #116

@lauraaraviciute

Description

@lauraaraviciute

Hi

I'm trying to install tfenv on a docker image and the following occurs when building the image:

========starting package install script==========
intalling tfenv
[INFO] Installing Terraform v0.11.10
[INFO] Downloading release tarball from https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip
######################################################################## 100.0%
[INFO] Downloading SHA hash file from https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_SHA256SUMS
tfenv: tfenv-install: [WARN] No keybase install found, skipping OpenPGP signature verification
tfenv: tfenv-install: [WARN] No shasum tool available. Skipping SHA256 hash validation
Archive:  tfenv_download.GV1oy7/terraform_0.11.10_linux_amd64.zip
  inflating: /builder_home/tfenv/versions/0.11.10/terraform
[INFO] Installation of terraform v0.11.10 successful
[INFO] Switching to v0.11.10
/usr/local/bin/terraform: line 6: which: command not found
/usr/local/bin/terraform: line 6: /tfenv: No such file or directory
tfenv: tfenv-use: [ERROR] 'terraform --version' failed. Something is seriously wrong
The command '/bin/sh -c chmod +x /scripts/install_tfenv.sh      && /scripts/install_tfenv.sh' returned a non-zero code: 1

I seen an open PR for making the install location configurable, is that going to happen anytime soon? Are there any workarounds to the error I'm receiving?

More context or information would be greatly appreciated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions