mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(composer)
always broken for non-current release. fun. at least the test caught it. closes #5152
This commit is contained in:
parent
2fb4a91186
commit
806156bb02
1 changed files with 8 additions and 11 deletions
|
@ -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:
|
versions:
|
||||||
github: composer/composer
|
github: composer/composer
|
||||||
|
|
||||||
|
@ -12,14 +7,16 @@ dependencies:
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
curl.se: '*'
|
curl.se: '*'
|
||||||
script: |
|
script:
|
||||||
curl -sS https://getcomposer.org/installer | php
|
- curl -sSLO https://github.com/composer/composer/releases/download/{{version}}/composer.phar
|
||||||
mkdir -p {{prefix}}/bin
|
- install -D composer.phar {{prefix}}/bin/composer.phar
|
||||||
mv ./composer.phar {{prefix}}/bin
|
- run: ln -sf composer.phar composer
|
||||||
test ! -e {{prefix}}/bin/composer && ln -s ./composer.phar {{prefix}}/bin/composer
|
working-directory: ${{prefix}}/bin
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/composer
|
- bin/composer
|
||||||
- bin/composer.phar
|
- bin/composer.phar
|
||||||
|
|
||||||
test: composer -V | grep {{version}}
|
test:
|
||||||
|
- composer -V
|
||||||
|
- composer -V | grep {{version}}
|
||||||
|
|
Loading…
Reference in a new issue