asdf-community / asdf-hashicorp

HashiCorp plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
234 stars 54 forks source link

When using for both packer and terraform, with the legacy version file option, asdf gets confused #7

Closed robacarp closed 3 years ago

robacarp commented 4 years ago

Perhaps I'm using this wrong, but I'm in a weird state. I have both packer and terraform installed via this excellent plugin. On this particular project, I have a .terraform-version file with simply: 0.12.6 (Packer is not needed). When I run asdf install:

$ asdf install
Downloading packer version 0.12.6 from https://releases.hashicorp.com/packer/0.12.6/packer_0.12.6_darwin_amd64.zip
Error: packer version 0.12.6 not found

My current workaround is to remove the packer plugin, and install it directly without asdf.