You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fail global required_version check if it contains any prerelease fields (#31331)
* Fail global required_version check if it contains any prerelease fields
* go mod tidy
* Improve required_version prerelease not supported error string
* Add prerelease version constraint unit tests
* Fix side-effects by populating global diags too soon
"Prerelease version constraints are not supported: %s. Remove the prerelease information from the constraint. Prerelease versions of terraform will match constraints using their version core only.",
40
+
required.String()),
41
+
Subject: constraint.DeclRange.Ptr(),
42
+
})
43
+
}
44
+
}
45
+
46
+
iflen(prereleaseDiags) >0 {
47
+
// There were some prerelease fields in the constraints. Don't check the constraints as they will
48
+
// fail, and populate the diagnostics for these constraints with the prerelease diagnostics.
0 commit comments