We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca1fe8 commit 5642744Copy full SHA for 5642744
build-utils/preflight.py
@@ -6,6 +6,7 @@
6
7
# Regex to validate version numbers
8
PROD_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+$")
9
+PROD_VERSION_EXT_RE = re.compile(r"^\d+\.\d+\.\d+-\d$")
10
PRERELEASE_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+-(alpha|beta|rc)\.\d+$")
11
12
early_access = str(os.getenv("EARLY_ACCESS"))
@@ -21,7 +22,7 @@
21
22
)
23
24
# Check what kind of release this is and guard against non-conforming version numbers
-if PROD_VERSION_RE.match(nami_sdk_version):
25
+if PROD_VERSION_RE.match(nami_sdk_version) or PROD_VERSION_EXT_RE.match(nami_sdk_version):
26
if early_access == "true":
27
print(f"Early access value ('{early_access}') is not compatible with production version format '{nami_sdk_version}'")
28
sys.exit(1)
0 commit comments