Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Simple validation of stamp substitutions in expand_template #954

Open
njlr opened this issue Oct 1, 2024 · 0 comments
Open

[FR] Simple validation of stamp substitutions in expand_template #954

njlr opened this issue Oct 1, 2024 · 0 comments

Comments

@njlr
Copy link

njlr commented Oct 1, 2024

It would be useful to be able to provide simple validations of values given to expand_template to ensure that incorrect information has not been given to Bazel. If the values do not pass validation, the build should fail.

This is particularly important when implementing "deliverables", since an incorrect stamp might lead to artifacts going to the wrong place.

A validation regex seems like a good balance of simplicity / expressiveness.

For example, a sem-ver regex: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant