Skip to content

Commit

Permalink
bugfix: use proper escape sequence for passing the base reference to …
Browse files Browse the repository at this point in the history
…`roave-backward-compatibility-check`

Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Jul 11, 2023
1 parent a32891f commit 3e95874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ function backwardCompatibilityCheckTool(config: Config): ToolRunningContainerDef
}

return {
// @TODO need to `git fetch baseSha1` from source repo!
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' ],
toolType : ToolType.CODE_CHECK,
php : CONTAINER_DEFAULT_PHP_VERSION,
Expand Down
2 changes: 1 addition & 1 deletion tests/code-check-roave-backward-compatibility/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": [
{
"name": "Backward Compatibility Check [@default, latest]",
"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\":[]}",
"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\":[]}",
"operatingSystem": "ubuntu-latest",
"action": "laminas/laminas-continuous-integration-action@v1"
}
Expand Down

0 comments on commit 3e95874

Please sign in to comment.