Skip to content

Commit e705fcf

Browse files
authored
Fix integration tests with latest composer
composer/composer#12623 (comment) Fix integration tests, they all fail as they still reference repo.magento.com > The 'https://repo.magento.com/packages.json' URL required authentication (HTTP 401). You must be using the interactive console to authenticate This approach will remove all the repositories, which is similar to the initial effort to remove the default (and only) repository at index 0. But because not all versions of composer support it, i've short circuited it with `|| true`
1 parent df6e080 commit e705fcf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

magento-integration-tests/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ if [[ ! -z "$INPUT_POST_PROJECT_SCRIPT" && -f "${GITHUB_WORKSPACE}/$INPUT_POST_P
6464
fi
6565

6666
echo "Configure extension source in composer"
67+
# https://github.com/composer/composer/issues/12623#issuecomment-3551953185
68+
composer config --unset repositories || true
6769
composer config --unset repo.0
6870
composer config repositories.local-source path local-source/\*
6971
composer config repositories.magento composer $REPOSITORY_URL

0 commit comments

Comments
 (0)