Closed athak closed 1 month ago
Hi @athak
Did you enable the terramate.required_version_allow_prereleases
flag?
By default the constraint check ignores prereleases.
Check docs here.
terramate {
required_version = ">= 0.8.0"
required_version_allow_prereleases = true
}
let me know if this fixes your problem.
Hi @i4ki
My bad, I missed that flag in the docs!
Describe the bug The version constraint check is not working properly. I have the following in the
terramate.tm.hcl
file:And the latest version installed via APT, currently
0.9.0-rc1
. Runningterramate generate
or any other command errors with the following output:I suspect it's not parsing the
-rc1
suffix correctly.To Reproduce
Steps to reproduce the behavior:
terramate
, e.g.required_version = ">= 0.8.0"
terramate
versionterramate
commandExpected behavior It should parse the version correctly and consider
0.9.0-rc1
a higher version than0.8.0
.Log Output See above.
Environment (please complete the following information):