Skip to content

fix: support equals in runner labels - #6143

Open
ANSHUL-REAL wants to merge 2 commits into
nektos:masterfrom
ANSHUL-REAL:fix/runner-label-equals
Open

fix: support equals in runner labels#6143
ANSHUL-REAL wants to merge 2 commits into
nektos:masterfrom
ANSHUL-REAL:fix/runner-label-equals

Conversation

@ANSHUL-REAL

Copy link
Copy Markdown

Fixes #4691

The platform mapping parser split at every equals sign, so a valid self-hosted runner label such as runner-size=large was ignored.

This parses the mapping at its final equals sign and adds a regression test for labels containing an equals sign.

Tests:

  • go test ./cmd -run '^TestNewPlatformsSupportsEqualsInRunnerLabels$' -count=1 -v

Parse the platform mapping at its final equals sign so valid self-hosted runner labels containing an equals sign are preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--platform argument doesn't support labels containing equals symbol

1 participant