Skip to content

Commit d9e5251

Browse files
authored
Merge pull request #232 from boesing/bugfix/command-escape-sequence
Use proper escape sequence for passing the base reference to `roave-backward-compatibility-check`
2 parents a32891f + 3e95874 commit d9e5251

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/tools.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ function backwardCompatibilityCheckTool(config: Config): ToolRunningContainerDef
5656
}
5757

5858
return {
59-
// @TODO need to `git fetch baseSha1` from source repo!
6059
executionType : ToolExecutionType.STATIC,
6160
name : 'Backward Compatibility Check',
62-
command : `roave-backward-compatibility-check check --from="${ config.baseReference }" --install-development-dependencies`,
61+
command : `roave-backward-compatibility-check check --from=\\"${ config.baseReference }\\" --install-development-dependencies`,
6362
filesToCheck : [ 'composer.json' ],
6463
toolType : ToolType.CODE_CHECK,
6564
php : CONTAINER_DEFAULT_PHP_VERSION,

tests/code-check-roave-backward-compatibility/matrix.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": [
33
{
44
"name": "Backward Compatibility Check [@default, latest]",
5-
"job": "{\"command\":\"roave-backward-compatibility-check check --from=\\\"1111222233334444aaaabbbbccccdddd\\\" --install-development-dependencies\",\"php\":\"@default\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
5+
"job": "{\"command\":\"roave-backward-compatibility-check check --from=\\\\\\\"1111222233334444aaaabbbbccccdddd\\\\\\\" --install-development-dependencies\",\"php\":\"@default\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
66
"operatingSystem": "ubuntu-latest",
77
"action": "laminas/laminas-continuous-integration-action@v1"
88
}

0 commit comments

Comments
 (0)