Skip to content

OutputSpec: Allow all valid output names#7631

Merged
edolstra merged 4 commits intoNixOS:masterfrom
edolstra:output-names
Jan 18, 2023
Merged

OutputSpec: Allow all valid output names#7631
edolstra merged 4 commits intoNixOS:masterfrom
edolstra:output-names

Conversation

@edolstra
Copy link
Member

Fixes #7624.

@edolstra edolstra requested a review from thufschmitt as a code owner January 18, 2023 13:15
Comment on lines +24 to +25
// See checkName() for valid output name characters.
static std::regex regex(R"((\*)|([a-zA-Z\+\-\._\?=]+(,[a-zA-Z\+\-\._\?=]+)*))");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be in a future PR, but it would be great for these two to share code so they are automatically in sync. Maybe we could constexpr build the regex from one to just match a single output name used in checkName, for example.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked the regex and it looks accurate.

Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good incremental improvement, and CI has passed.

Comment on lines +24 to +25
// See checkName() for valid output name characters.
static std::regex regex(R"((\*)|([a-zA-Z\+\-\._\?=]+(,[a-zA-Z\+\-\._\?=]+)*))");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked the regex and it looks accurate.

@edolstra edolstra enabled auto-merge January 18, 2023 15:35
@github-actions
Copy link

Successfully created backport PR #7635 for 2.13-maintenance.

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

Successfully merging this pull request may close these issues.

Error: Invalid outputs specifier since 2.13.0

3 participants