Regression in handling tfenv regex in .terraform-version #3833
Unanswered
mengesb
asked this question in
Troubleshooting and bug reports
Replies: 2 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.
0 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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