Skip to content

Commit

Permalink
Update preflight.py
Browse files Browse the repository at this point in the history
  • Loading branch information
namidan authored Aug 9, 2024
1 parent fca1fe8 commit 5642744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-utils/preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

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

early_access = str(os.getenv("EARLY_ACCESS"))
Expand All @@ -21,7 +22,7 @@
)

# Check what kind of release this is and guard against non-conforming version numbers
if PROD_VERSION_RE.match(nami_sdk_version):
if PROD_VERSION_RE.match(nami_sdk_version) or PROD_VERSION_EXT_RE.match(nami_sdk_version):
if early_access == "true":
print(f"Early access value ('{early_access}') is not compatible with production version format '{nami_sdk_version}'")
sys.exit(1)
Expand Down

0 comments on commit 5642744

Please sign in to comment.