Skip to content

Use proper escape sequence for passing the base reference to roave-backward-compatibility-check #232

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

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

boesing
Copy link
Member

@boesing boesing commented Jul 11, 2023

Q A
Bugfix yes

Description

Hopefully this fixes the problem with the CI container which receives unescaped --from option value. 🤞🏼

…`roave-backward-compatibility-check`

Signed-off-by: Maximilian Bösing <[email protected]>
@boesing boesing added the Bug Something isn't working label Jul 11, 2023
@boesing boesing added this to the 1.23.2 milestone Jul 11, 2023
@boesing boesing merged commit d9e5251 into laminas:1.23.x Jul 11, 2023
@boesing boesing deleted the bugfix/command-escape-sequence branch July 11, 2023 19:10
executionType : ToolExecutionType.STATIC,
name : 'Backward Compatibility Check',
command : `roave-backward-compatibility-check check --from="${ config.baseReference }" --install-development-dependencies`,
command : `roave-backward-compatibility-check check --from=\\"${ config.baseReference }\\" --install-development-dependencies`,
filesToCheck : [ 'composer.json' ],
Copy link
Contributor

Choose a reason for hiding this comment

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

we should use a single backslash;

- --from=\\"${ config.baseReference }\\"
+ --from=\"${ config.baseReference }\"

or drop the quotes:

- --from=\\"${ config.baseReference }\\"
+ --from=${ config.baseReference }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants