Skip to content

Commit

Permalink
also enforce lowercase and non-default flavor names
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Dec 19, 2024
1 parent a774097 commit 0b6b877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/rust_ci_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 0b6b877

Please sign in to comment.