Skip to content

Commit 1075d5a

Browse files
pattonwebzclaude
andcommitted
Drop the invalid --prefer-offline flag from composer install
`--prefer-offline` is an npm flag; composer install has no such option and exits 1 on it, so the build failed before installing anything. It was copy-pasted from the `npm ci --prefer-offline` line three lines below, in 9bed611. Composer uses its cache automatically and --prefer-dist is already present, so there is nothing to replace the flag with. This breaks every gha-build run on develop, not just this branch. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019LoLgW7oFjBPxGea9kiZJ2
1 parent e0b9c36 commit 1075d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build-plugin-with-ref.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
108108
- name: Install Composer dependencies
109109
run: |
110-
if [ -f composer.json ]; then composer install --no-dev --prefer-dist --prefer-offline --no-progress --no-interaction; else echo "No composer.json"; fi
110+
if [ -f composer.json ]; then composer install --no-dev --prefer-dist --no-progress --no-interaction; else echo "No composer.json"; fi
111111
112112
- name: Install npm dependencies
113113
if: steps.cache-node-modules.outputs.cache-hit != 'true' && hashFiles('package.json') != ''

0 commit comments

Comments
 (0)