From 806156bb028676ec7635d64aee908a51087901bd Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 8 Feb 2024 13:21:08 -0500 Subject: [PATCH] fix(composer) always broken for non-current release. fun. at least the test caught it. closes #5152 --- projects/getcomposer.org/package.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/projects/getcomposer.org/package.yml b/projects/getcomposer.org/package.yml index bf986631..15255a8d 100644 --- a/projects/getcomposer.org/package.yml +++ b/projects/getcomposer.org/package.yml @@ -1,8 +1,3 @@ -distributable: - # We are downloading a .tar.gz archive from GitHub because we are unable to download a .phar archive. - url: https://github.com/composer/composer/archive/{{version}}.tar.gz - strip-components: 1 - versions: github: composer/composer @@ -12,14 +7,16 @@ dependencies: build: dependencies: curl.se: '*' - script: | - curl -sS https://getcomposer.org/installer | php - mkdir -p {{prefix}}/bin - mv ./composer.phar {{prefix}}/bin - test ! -e {{prefix}}/bin/composer && ln -s ./composer.phar {{prefix}}/bin/composer + script: + - curl -sSLO https://github.com/composer/composer/releases/download/{{version}}/composer.phar + - install -D composer.phar {{prefix}}/bin/composer.phar + - run: ln -sf composer.phar composer + working-directory: ${{prefix}}/bin provides: - bin/composer - bin/composer.phar -test: composer -V | grep {{version}} \ No newline at end of file +test: + - composer -V + - composer -V | grep {{version}}