From 312fbd9a0dfde384788b2255732bc30949efe819 Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Thu, 19 Dec 2024 16:29:14 -0500 Subject: [PATCH] also enforce lowercase and non-default flavor names --- ci/rust_ci_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/rust_ci_helper.py b/ci/rust_ci_helper.py index 3b3fc19d..e1a0aa2a 100755 --- a/ci/rust_ci_helper.py +++ b/ci/rust_ci_helper.py @@ -198,7 +198,10 @@ def copy_cargo_binaries(*, out_dir, cargo_profile, targets, crate, flavor=None): def is_valid_flavor_name(name): """Validates that the flavor name conforms to some naming scheme""" - return (not "." in name) and (not "_" in name) and (not " " in name) + is_valid = (not "." in name) and (not "_" in name) and (not " " in name) + is_valid &= name != "default" + is_valid &= name.islower() + return is_valid def main():