Skip to content

fix(setup-extension): preserve composer repositories when applying extraRepositories - #177

Merged
Soner (shyim) merged 1 commit into
mainfrom
fix/preserve-composer-repositories
Jul 20, 2026
Merged

Soner (shyim) merged 1 commit into
mainfrom
fix/preserve-composer-repositories

Conversation

@shyim

Copy link
Copy Markdown
Member

Summary

Fixes an issue in setup-extension where setting/merging extraRepositories (including the default {}) overwrote the root composer.json's repositories array. This removed default path repositories such as custom/plugins/*, causing Composer to download older tagged release archives instead of testing the checked-out code.

Changes

  • Updated the jq merging logic in setup-extension/action.yml to preserve existing repositories and concatenate/merge extraRepositories into it.
  • Added bash test script setup-extension/action.test.bash to test empty, object, and array extraRepositories inputs.
  • Integrated test execution into .github/workflows/test.yml.

Closes #169

@shyim
Soner (shyim) merged commit e6e45e6 into main Jul 20, 2026
9 checks passed
@shyim
Soner (shyim) deleted the fix/preserve-composer-repositories branch July 20, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup-extension: empty extraRepositories wipes custom/plugins/* path repo → tests run against stale tag archive

2 participants