tfutils / tfenv

Terraform version manager
MIT License
4.5k stars 454 forks source link

install min-required using wrong path `version` instead of `versions` #242

Closed pbpblush closed 3 years ago

pbpblush commented 3 years ago

using yesterdays git pull of https://github.com/tfutils/tfenv.git on Ubuntu 18.04.5 OS

the tfenv install min-required using wrong path version instead of versions

~/tmp$ cat terraform.tf
terraform {
  required_version  = "<0.12.3, >= 0.10.0"
}
~/tmp$ tfenv install min-required
No versions matching 'min-required' found in remote
~/tmp$ tfenv version-name
cat: /home/<user>/.tfenv/version: No such file or directory
Version could not be resolved (set by /home/<user>/.tfenv/version or tfenv use <version>)
~/tmp$ ls ~/.tfenv/
CHANGELOG.md  LICENSE  README.md  bin  lib  libexec  share  test  versions
~/tmp$ ls ~/.tfenv/versions/
0.1.0  0.1.1  0.10.8  0.11.0  0.11.11  0.11.13  0.11.14  0.12.10  0.14.6  0.5.0  0.5.1  0.5.3  0.8.0
pbpblush commented 3 years ago

I checked the source code and misred that ~/.tfenv/version is a text file not a directory. Closing ticket.