Regression in handling tfenv regex in .terraform-version #3833
Replies: 3 comments
-
Not entirely sure why this is a discussion, since it seems more like a regression of prior functionality. |
Beta Was this translation helpful? Give feedback.
-
mise has never supported regex or semver parsing of versions. It's possible the asdf plugin had some logic to handle this but mise no longer defaults to using the asdf plugin for terraform. You can still manually use the plugin if you want. |
Beta Was this translation helpful? Give feedback.
-
mise use to play nice ... now it isn't since the update, however I can either disable a plugin entirely or not use mise - there's no middle ground which use to be possible I guess |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Mise is not properly parsing
.terraform-version
files from tfenv when regex is present. tfenv allows for alatest:<regex>
syntax, so something likelatest:^1\.[0-9]\+\.[0-9]\+$
ensures a semver compatible result. Unfortunately using something likelatest:^1\.0
will result in version retuns for-alpha
or-beta
, etc, type versions, so this ensures a released compatible version is matched.To Reproduce
Expected behavior
mise installs correct version terraform
mise doctor
outputAdditional context
Looks like regression of #917 or #1727
Beta Was this translation helpful? Give feedback.
All reactions