Skip to content

unable to install new version when using environment variable #441

@tjcelaya

Description

@tjcelaya

As stated in the title I am unable to install a new version of Terraform when the TFENV_TERRAFORM_VERSION environment variable is set. Terminal session pasted below:

$ tfenv
tfenv 3.0.0
Usage: tfenv <command> [<options>]
...
$ tfenv install 1.10.2
Terraform v1.9.5 is already installed
$ tfenv list
* 1.9.5 (set by TFENV_TERRAFORM_VERSION)
  1.6.6
  1.5.7
  1.5.3
$ unset TFENV_TERRAFORM_VERSION
$ tfenv list
  1.9.5
* 1.6.6 (set by /opt/homebrew/Cellar/tfenv/3.0.0/version)
  1.5.7
  1.5.3
$ tfenv install 1.10.2
Installing Terraform v1.10.2
Downloading release tarball from https://releases.hashicorp.com/terraform/1.10.2/terraform_1.10.2_darwin_arm64.zip
########################################################################################################################################## 100.0%
Downloading SHA hash file from https://releases.hashicorp.com/terraform/1.10.2/terraform_1.10.2_SHA256SUMS
Not instructed to use Local PGP (/opt/homebrew/Cellar/tfenv/3.0.0/use-{gpgv,gnupg}) & No keybase install found, skipping OpenPGP signature verification
Archive:  /var/folders/5s/ykr2l85x7ngbd45q1nvtmss40000gn/T/tfenv_download.XXXXXX.mPvCtPOJhA/terraform_1.10.2_darwin_arm64.zip
  inflating: /opt/homebrew/Cellar/tfenv/3.0.0/versions/1.10.2/LICENSE.txt
  inflating: /opt/homebrew/Cellar/tfenv/3.0.0/versions/1.10.2/terraform
Installation of terraform v1.10.2 successful. To make this your default version, run 'tfenv use 1.10.2'
$ tf version
Terraform v1.10.2
on darwin_arm64
$ tfenv list
* 1.10.2 (set by /opt/homebrew/Cellar/tfenv/3.0.0/version)
  1.9.5
  1.6.6
  1.5.7
  1.5.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions