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

tfenv can't find installed versions #226

Closed
jtokoph opened this issue Dec 8, 2020 · 0 comments
Closed

tfenv can't find installed versions #226

jtokoph opened this issue Dec 8, 2020 · 0 comments

Comments

@jtokoph
Copy link

jtokoph commented Dec 8, 2020

Update

If anyone has the same problem and finds this, it's because the latest version of tfenv installable via homebrew is out of date and doesn't include this MacOS fix: #152

The solution for me was to follow the manual install procedure in the readme: https://github.com/tfutils/tfenv#manual

Original Issue
I'm installing versions of terraform with tfenv but it can't seem to find them after installing:

➜  tfenv --version
tfenv 2.0.0

➜  tfenv install 0.12.29
Terraform v0.12.29 is already installed

➜  tfenv use 0.12.29
No installed versions of terraform matched '0.12.29'

➜  TFENV_DEBUG=1 tfenv use 0.12.29
[DEBUG] Sourcing helpers from /usr/local/Cellar/tfenv/2.0.0/lib/helpers.sh
DEBUG trap set
Helpers sourced successfully
$PATH does not contain '/usr/local/Cellar/tfenv/2.0.0/libexec', prepending and exporting it now
$PATH does not contain '/usr/local/Cellar/tfenv/2.0.0/bin', prepending and exporting it now
Setting TFENV_DIR to /Users/jasontokoph/src/aws
tfenv argument is: use
Long argument provided: use
Resulting command-path: /usr/local/Cellar/tfenv/2.0.0/libexec/tfenv-use
Exec: "/usr/local/Cellar/tfenv/2.0.0/libexec/tfenv-use" "0.12.29"
TFENV_HELPERS is set, not sourcing helpers again
$PATH already contains '/usr/local/Cellar/tfenv/2.0.0/libexec', not adding it again
$PATH already contains '/usr/local/Cellar/tfenv/2.0.0/bin', not adding it again
Resolving version with: tfenv-resolve-version 0.12.29
TFENV_HELPERS is set, not sourcing helpers again
$PATH already contains '/usr/local/Cellar/tfenv/2.0.0/libexec', not adding it again
$PATH already contains '/usr/local/Cellar/tfenv/2.0.0/bin', not adding it again
Version Requested: 0.12.29
Version is explicit: 0.12.29. Regex enforces the version: ^0.12.29$
Searching /usr/local/Cellar/tfenv/2.0.0/versions for latest version matching ^0.12.29$
No installed versions of terraform matched '0.12.29'

➜  ll /usr/local/Cellar/tfenv/2.0.0/versions/0.12.29/
total 137120
drwxr-xr-x  3 jasontokoph  admin        96 Dec  8 10:55 .
drwxr-xr-x  3 jasontokoph  admin        96 Dec  8 10:55 ..
-rwxr-xr-x  1 jasontokoph  admin  70201712 Jul 22 08:46 terraform
@jtokoph jtokoph closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant