Address review feedback: revert src/tools.ts, remove run.sh, rename tool to backward-compatibility-check

Co-authored-by: shivammathur <1571086+shivammathur@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-17 08:54:16 +00:00
parent 987ba5bfe9
commit f9fbb516a6
6 changed files with 7 additions and 13 deletions

View File

@ -338,9 +338,8 @@
"repository": "symplify/easy-coding-standard",
"scope": "scoped"
},
"roave-backward-compatibility-check": {
"backward-compatibility-check": {
"type": "composer",
"alias": "roave-backward-compatibility-check",
"repository": "roave/backward-compatibility-check",
"scope": "scoped"
}

View File

@ -1,5 +0,0 @@
. /home/runner/work/setup-php/setup-php/src/scripts/linux.sh 8.4 production
step_log "Setup Tools"
add_tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.4-stable.phar,https://dl.cloudsmith.io/public/shivammathur/composer-cache/raw/files/composer-8.4-stable.phar,https://getcomposer.org/composer-stable.phar composer latest
step_log "Sponsor setup-php"
add_log "$tick" "setup-php" "https://setup-php.com/sponsor"

View File

@ -203,7 +203,7 @@ export async function addPackage(data: RS): Promise<string> {
const command = await utils.getCommand(data['os'], 'composer_tool');
const parts: string[] = data['repository'].split('/');
const args: string = await utils.joins(
data['tool'],
parts[1],
data['release'],
parts[0] + '/',
data['scope']