Telling mise to ignore idiomatic version file for terraform results in 'invalid shim' error #3724
Replies: 3 comments 14 replies
-
FWIW, I think this is a regression - it used to work fine in a |
Beta Was this translation helpful? Give feedback.
-
For me its even worse, when I set
I either have to disable the full idiomatic_version_file functionality or essentially can't work with terraform anymore because all of our projects use non-strict version specifiers :/ |
Beta Was this translation helpful? Give feedback.
-
This does not seem to happen if |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I'm using the
terraform
asdf plugin withmise
. I have amain.tf
file which specifies a version constraint that cannot be parsed, like this:Attempting to use
mise
without any settings tweaks results in an error like this:This makes sense - the version constraint is not specific enough to be parsed. I'd like to tell the TF plugin to not attempt to parse the version from the
main.tf
file and instead just use what's in mymise.toml
file. It looks like this setting should let me do that, but when I set it, I get a different error frommise
:To Reproduce
Steps to reproduce the behavior.
Install
mise
(I have version2024.12.14 macos-arm64 (ac3079c 2024-12-18)
).All is well up to this point. Now, let's add a
main.tf
that is unparseable by the idiomatic version file parser:This is also fine. Let's tell
mise
to not try to parse that file:Expected behavior
I expected
mise
to respect theidiomatic_version_file_disable_tools
setting and just use the terraform version in themise.toml
file.mise doctor
outputAdditional context
Add any other context about the problem here. Consider running mise with
--debug
or--trace
for extra debug info.Beta Was this translation helpful? Give feedback.
All reactions