Add test command to verify version collisions do not occur (#2272)

* Add test command to verify version collisions do not occur
* add max_allowable_version to schema and lock flow
* add max_allowable_version to all entries in version.lock
* add test-version-lock command
* use min supported stack if > locked min stack
* share lock conversion code with rule and lock to fix M.m bug
This commit is contained in:
Justin Ibarra
2022-09-19 09:53:30 -06:00
committed by GitHub
parent 725f7f3480
commit 2ee5a185c7
5 changed files with 9989 additions and 9210 deletions
+5
View File
@@ -29,3 +29,8 @@ class Version(tuple):
recovered_str += "." + str(additional)
return recovered_str
def max_versions(*versions: str) -> str:
"""Return the max versioned string."""
return str(max([Version(v) for v in versions]))