Skip to content

Commit 5642744

Browse files
authored
Update preflight.py
1 parent fca1fe8 commit 5642744

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-utils/preflight.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# Regex to validate version numbers
88
PROD_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+$")
9+
PROD_VERSION_EXT_RE = re.compile(r"^\d+\.\d+\.\d+-\d$")
910
PRERELEASE_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+-(alpha|beta|rc)\.\d+$")
1011

1112
early_access = str(os.getenv("EARLY_ACCESS"))
@@ -21,7 +22,7 @@
2122
)
2223

2324
# Check what kind of release this is and guard against non-conforming version numbers
24-
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):
2526
if early_access == "true":
2627
print(f"Early access value ('{early_access}') is not compatible with production version format '{nami_sdk_version}'")
2728
sys.exit(1)

0 commit comments

Comments
 (0)