Open dalmadebreceni opened 1 year ago
this fails because it cuts the version to 1, so works only if the terraform version is in the form of having 2 dots (aka 1.2.), but not with 1 dot (1.2).
Would it be an option to introduce latest-allowed-alpha and have that tag include pre-release versions?
That would make latest-allowed
and latest:^1.
a lot more useful for most normal users.
Now I'm jumping through hoops to make tfenv not install alpha versions.
tfenv latest-allowed should align with terraform behaviour, in the documentation : "A prerelease version can be selected only by an exact version constraint (the = operator or no operator). Prerelease versions do not match inexact operators such as >=, ~>, etc."
Scans terraform files for required version, finds it. Then ignores it, switches to "version=latest" instead of latest of required (major) version. tfenv/libexec/tfenv-install latest-allowed ->