Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing branch aliases #73

Closed
GrahamCampbell opened this issue Nov 27, 2019 · 28 comments
Closed

Missing branch aliases #73

GrahamCampbell opened this issue Nov 27, 2019 · 28 comments

Comments

@GrahamCampbell
Copy link
Contributor

Could you add branch aliases, so composer knows which branches are 2.x, 3.x, and 4.x please?

@nunomaduro
Copy link
Owner

What is your need? Currently the stable is 3.x under the stable branch. And we have a branch alias for the 4.x here:

"extra": {

It's not stable yet.

@GrahamCampbell
Copy link
Contributor Author

There are no branch aliases. They are only read from the "default" branch, which is "stable" in this repo. Any config in other branches is totally ignored. There are currently no branch aliases, so v3 or v4 dev versions cannot be installed using composer without having to ask for a branch.

@GrahamCampbell
Copy link
Contributor Author

There are no branch aliases: https://github.com/nunomaduro/collision/blob/stable/composer.json.

@GrahamCampbell
Copy link
Contributor Author

PS You can always check what branch aliases packagist has picked up at https://packagist.org/packages/nunomaduro/collision.

@GrahamCampbell
Copy link
Contributor Author

@nunomaduro
Copy link
Owner

There are no branch aliases. They are only read from the "default" branch.

This statement is incorrect. Anyway, fixed here: bb5d823

@GrahamCampbell
Copy link
Contributor Author

This doesn't seem to be fixed:

image

@GrahamCampbell
Copy link
Contributor Author

GrahamCampbell commented Nov 27, 2019

No 4.x-dev. Is the webhook working?

@nunomaduro
Copy link
Owner

What is your end goal? If you perform composer require collision:^4.0 you will get the branch dev-next branch in the same way that if you perform composer require laravel/framework:^7.0 you will get the dev-master branch.

@GrahamCampbell
Copy link
Contributor Author

What is your end goal? If you perform composer require collision:^4.0 you will get the branch dev-next branch

No you won't. That will only happen if Packagist acknowledges the alias.

@GrahamCampbell
Copy link
Contributor Author

Hmmm, something seems to be wrong with Packagist, since it's not displaying the version alias correctly. Compare the collision packagist entry with the one for laravel/framework.

Yet, the API still has the branch alias: https://repo.packagist.org/p/nunomaduro/collision%249baf696191ef08d48c30f185315ac00ee371c264ea91df3b75d03e2f0a6e8ce4.json and composer is able to resolve the version as you say.

@GrahamCampbell
Copy link
Contributor Author

Ping @Seldaek. What's going wrong here, in that composer can resolve ^4.0@dev, but packagist's UI doesn't think 4.x-dev or 4.0.x-dev is a version?

@nunomaduro
Copy link
Owner

~/temp/foo via 🐘 v7.3.9 took 3s 
➜ rm -rf composer.lock vendor && composer require nunomaduro/collision:"^3.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals
  - Installing jakub-onderka/php-console-color (v0.2): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/service-contracts (v2.0.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.13.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.13.0): Loading from cache
  - Installing symfony/console (v4.4.0): Loading from cache
  - Installing psr/log (1.1.2): Loading from cache
  - Installing filp/whoops (2.5.0): Loading from cache
  - Installing nunomaduro/collision (v3.0.1): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Writing lock file
Generating autoload files
phpstan/extension-installer: Extensions installed

~/temp/foo via 🐘 v7.3.9 took 2s 
➜ rm -rf composer.lock vendor && composer require nunomaduro/collision:"^4.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals
  - Installing jakub-onderka/php-console-color (v0.2): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/service-contracts (v2.0.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.13.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.13.0): Loading from cache
  - Installing symfony/console (v5.0.0): Loading from cache
  - Installing psr/log (1.1.2): Loading from cache
  - Installing filp/whoops (2.5.0): Loading from cache
  - Installing nunomaduro/collision (dev-next 77dab00): Cloning 77dab005bd from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Writing lock file
Generating autoload files
phpstan/extension-installer: Extensions installed

@nunomaduro
Copy link
Owner

nunomaduro commented Nov 28, 2019

👆🏻 Here is an example. Just made composer require nunomaduro/collision:"^4.0" and the branch dev-next got pulled.

@nunomaduro nunomaduro reopened this Nov 28, 2019
@GrahamCampbell
Copy link
Contributor Author

👆🏻 Here is an example. Just made composer require nunomaduro/collision:"^4.0" and the branch dev-next got pulled.

Yeh, I tried this myself, and it worked:

composer is able to resolve the version as you say.

@GrahamCampbell
Copy link
Contributor Author

What is unexplained is why the Packagist UI says there is no 4.x-dev.

@GrahamCampbell
Copy link
Contributor Author

graham@newhuaweiapstaff-10-57-25-200 test % composer73 install --prefer-dist -vvvv
Reading ./composer.json
Loading config file /root/.composer/config.json
Loading config file /root/.composer/auth.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/data): git branch --no-color --no-abbrev -v
Executing command (/data): git describe --exact-match --tags
Executing command (/data): git log --pretty="%H" -n1 HEAD
Executing command (/data): hg branch
Executing command (/data): fossil branch list
Executing command (/data): fossil tag list
Executing command (/data): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /root/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Running 1.9.1 (2019-11-01 17:20:17) with PHP 7.3.11 on Linux / 4.19.76-linuxkit
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Downloading http://repo.packagist.org/p/provider-2013%241ab9b5b573bacdf4467dfaaaa2860fd6965e56708d06d57719b8351ce164dd4f.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json into cache
Downloading http://repo.packagist.org/p/provider-2014%24c0022e06a063c36dcb7dfe4cd088c2d878a65200d2d153d0e6ec5ec5aaa335f5.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json into cache
Downloading http://repo.packagist.org/p/provider-2015%248b8652d26cd4d7c3bc2a674d4589c52f5f3c208ae41de226ae10e3498289d9fd.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json into cache
Downloading http://repo.packagist.org/p/provider-2016%24134f541b6e781b58c7c04955a1db575b6503a039a110595d52dc4980e30b66c0.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json into cache
Downloading http://repo.packagist.org/p/provider-2017%2461afd5589587fe7f2c7341dd663c916214338036276b9d159a6062101f4e8782.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json into cache
Downloading http://repo.packagist.org/p/provider-2018%24d467b85637c973026e9a473da932e8847862964d75f5fdab1e798cdf53627cf2.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json into cache
Downloading http://repo.packagist.org/p/provider-2019-01%24754a329cb7df86b8d202d120ede3201f5696e4e573b637aaa407bfadec29fd49.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-01.json into cache
Downloading http://repo.packagist.org/p/provider-2019-04%24d20c7fc68587fed9dda2f3c47b9d78d81503af9c9a2f375b383be5d7727049ab.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-04.json into cache
Downloading http://repo.packagist.org/p/provider-2019-07%248205777b9111ff91d47c4e5bf64da1a73883743ec33b0ecfacef026b26c9457f.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json into cache
Downloading http://repo.packagist.org/p/provider-2019-10%24383183a6fa76faa4c07717e44aafabf96a21d8305f999968cf2486139476c515.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json into cache
Downloading http://repo.packagist.org/p/provider-archived%2479f2a4bb5134559b80d74a0d193f5305965856652ec75316720e24de549c89b9.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json into cache
Downloading http://repo.packagist.org/p/provider-latest%241431dffdfa99ac58b55d7ab1b9009ca2894a4c57913f20c2028491410416ebbd.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json into cache
Downloading http://repo.packagist.org/p/nunomaduro/collision%249baf696191ef08d48c30f185315ac00ee371c264ea91df3b75d03e2f0a6e8ce4.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-nunomaduro$collision.json into cache
Downloading http://repo.packagist.org/p/filp/whoops%24b75c132581a44d09790c77c955c8eafb990b8fc49ed5a1d38489e87e22eb8884.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-filp$whoops.json into cache
Downloading http://repo.packagist.org/p/symfony/console%24cd14c5f1caf7571dd79ba8a434407cad3feaf0ef59723a08103c9a1b8dd7438b.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$console.json into cache
Downloading http://repo.packagist.org/p/jakub-onderka/php-console-highlighter%2496de21548642040dfe88be5fcef109d2db00d254dea42050d2d08cdbb16b0d07.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-jakub-onderka$php-console-highlighter.json into cache
Downloading http://repo.packagist.org/p/psr/log%24dcbfc1ad4d7c576b1c746afdd3c1ef3da26e1afab6a859dbab8edb01b8d4701d.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-psr$log.json into cache
Downloading http://repo.packagist.org/p/symfony/polyfill-mbstring%24e1584233ae28dd20782579b45455f86d2fe348f47fb333d0eae9ae2c7020ca47.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-mbstring.json into cache
Downloading http://repo.packagist.org/p/symfony/polyfill-php73%248a9c3e0434c86e809942e969b625da31df1b37e3f18f2ed9a3f735dce7b3fe91.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-php73.json into cache
Downloading http://repo.packagist.org/p/symfony/service-contracts%24cdb78423b29916f9d47d36ca09b6dfe26c5ee5375286177b60f6bb83db49c6c6.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$service-contracts.json into cache
Downloading http://repo.packagist.org/p/jakub-onderka/php-console-color%24f680a087ba841dbba59b94e45379a7d72c1ea304ef4f125387d9b86330d648a0.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-jakub-onderka$php-console-color.json into cache
Downloading http://repo.packagist.org/p/psr/container%24f853477a87d388f6e2a39d6f9961bfc7ea7366652e168977acf5e2e85530805e.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-psr$container.json into cache
Resolving dependencies through SAT
Looking at all rules.
Something's changed, looking at all rules again (pass #1)
Dependency resolution completed in 0.002 seconds
Analyzed 1086 packages to resolve dependencies
Analyzed 309 rules to resolve dependencies
Package operations: 10 installs, 0 updates, 0 removals
Installs: jakub-onderka/php-console-color:v0.2, jakub-onderka/php-console-highlighter:v0.4, psr/container:1.0.0, symfony/service-contracts:v2.0.0, symfony/polyfill-php73:v1.13.0, symfony/polyfill-mbstring:v1.13.0, symfony/console:v5.0.0, psr/log:1.1.2, filp/whoops:2.5.0, nunomaduro/collision:dev-next 77dab00
  - Installing jakub-onderka/php-console-color (v0.2): Downloading https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/d5deaecff52a0d61ccb613bb3804088da0307191
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/JakubOnderka/PHP-Console-Color/legacy.zip/d5deaecff52a0d61ccb613bb3804088da0307191
Downloading https://codeload.github.com/JakubOnderka/PHP-Console-Color/legacy.zip/d5deaecff52a0d61ccb613bb3804088da0307191
Downloading (100%)Writing /root/.composer/cache/files/jakub-onderka/php-console-color/fc51518233d11b43ef6ed5846bd9b655f95031dc.zip into cache from /data/vendor/jakub-onderka/php-console-color/41637aa142c80bd7bc5b0d02cdd8fd42

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/jakub-onderka/php-console-color/41637aa142c80bd7bc5b0d02cdd8fd42' -d '/data/vendor/composer/d171293e'
    REASON: jakub-onderka/php-console-highlighter v0.4 requires jakub-onderka/php-console-color ~0.2 -> satisfiable by jakub-onderka/php-console-color[v0.2].

  - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/9f7a229a69d52506914b4bc61bfdb199d90c5547
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/JakubOnderka/PHP-Console-Highlighter/legacy.zip/9f7a229a69d52506914b4bc61bfdb199d90c5547
Downloading https://codeload.github.com/JakubOnderka/PHP-Console-Highlighter/legacy.zip/9f7a229a69d52506914b4bc61bfdb199d90c5547
Downloading (100%)Writing /root/.composer/cache/files/jakub-onderka/php-console-highlighter/b07eac94158d047f377959dd8c014085dd1240ae.zip into cache from /data/vendor/jakub-onderka/php-console-highlighter/f57d152869c13ccbc5bcc6f7a35d23a9

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/jakub-onderka/php-console-highlighter/f57d152869c13ccbc5bcc6f7a35d23a9' -d '/data/vendor/composer/b9783815'
    REASON: nunomaduro/collision 4.x-dev requires jakub-onderka/php-console-highlighter ^0.4 -> satisfiable by jakub-onderka/php-console-highlighter[v0.4].

  - Installing psr/container (1.0.0): Downloading https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/php-fig/container/legacy.zip/b7ce3b176482dbbc1245ebf52b181af44c2cf55f
Downloading https://codeload.github.com/php-fig/container/legacy.zip/b7ce3b176482dbbc1245ebf52b181af44c2cf55f
Downloading (100%)Writing /root/.composer/cache/files/psr/container/9bd0b358d39e22d7d8d7a342efcb207f3ae9a84d.zip into cache from /data/vendor/psr/container/ac2a2b5422c9d86c4d94c31337b42183

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/psr/container/ac2a2b5422c9d86c4d94c31337b42183' -d '/data/vendor/composer/b09133d4'
    REASON: symfony/service-contracts v2.0.0 requires psr/container ^1.0 -> satisfiable by psr/container[1.0.0].

  - Installing symfony/service-contracts (v2.0.0): Downloading https://api.github.com/repos/symfony/service-contracts/zipball/9d99e1556417bf227a62e14856d630672bf10eaf
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/symfony/service-contracts/legacy.zip/9d99e1556417bf227a62e14856d630672bf10eaf
Downloading https://codeload.github.com/symfony/service-contracts/legacy.zip/9d99e1556417bf227a62e14856d630672bf10eaf
Downloading (100%)Writing /root/.composer/cache/files/symfony/service-contracts/cbc26e3feb9c98027ad0070677fa951085b79322.zip into cache from /data/vendor/symfony/service-contracts/f6bb4769f8fde3c3226546683cb129c6

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/symfony/service-contracts/f6bb4769f8fde3c3226546683cb129c6' -d '/data/vendor/composer/6c77e33c'
    REASON: symfony/console v5.0.0 requires symfony/service-contracts ^1.1|^2 -> satisfiable by symfony/service-contracts[v1.1.1, v1.1.2, v1.1.4, v1.1.5, v1.1.6, v1.1.7, v1.1.8, v2.0.0].

  - Installing symfony/polyfill-php73 (v1.13.0): Downloading https://api.github.com/repos/symfony/polyfill-php73/zipball/4b0e2222c55a25b4541305a053013d5647d3a25f
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/symfony/polyfill-php73/legacy.zip/4b0e2222c55a25b4541305a053013d5647d3a25f
Downloading https://codeload.github.com/symfony/polyfill-php73/legacy.zip/4b0e2222c55a25b4541305a053013d5647d3a25f
Downloading (100%)Writing /root/.composer/cache/files/symfony/polyfill-php73/a3f4ce12f91a53a88f31718ef5f9cb4a57e74894.zip into cache from /data/vendor/symfony/polyfill-php73/3f6fe72e6ba2aabcae7764b79f27455d

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/symfony/polyfill-php73/3f6fe72e6ba2aabcae7764b79f27455d' -d '/data/vendor/composer/4786d69a'
    REASON: symfony/console v5.0.0 requires symfony/polyfill-php73 ^1.8 -> satisfiable by symfony/polyfill-php73[v1.10.0, v1.11.0, v1.12.0, v1.13.0, v1.8.0, v1.9.0].

  - Installing symfony/polyfill-mbstring (v1.13.0): Downloading https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7b4aab9743c30be783b73de055d24a39cf4b954f
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/symfony/polyfill-mbstring/legacy.zip/7b4aab9743c30be783b73de055d24a39cf4b954f
Downloading https://codeload.github.com/symfony/polyfill-mbstring/legacy.zip/7b4aab9743c30be783b73de055d24a39cf4b954f
Downloading (100%)Writing /root/.composer/cache/files/symfony/polyfill-mbstring/9ef17e72f5737f3fa2ee3d822c4dcd25339003d7.zip into cache from /data/vendor/symfony/polyfill-mbstring/d2a67a8ad0d137e1e5808ee95525e9f1

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/symfony/polyfill-mbstring/d2a67a8ad0d137e1e5808ee95525e9f1' -d '/data/vendor/composer/382a2a2c'
    REASON: symfony/console v5.0.0 requires symfony/polyfill-mbstring ~1.0 -> satisfiable by symfony/polyfill-mbstring[v1.0.0, v1.0.1, v1.1.0, v1.1.1, v1.10.0, v1.11.0, v1.12.0, v1.13.0, v1.2.0, v1.3.0, v1.3.1, v1.4.0, v1.5.0, v1.6.0, v1.7.0, v1.8.0, v1.9.0].

  - Installing symfony/console (v5.0.0): Downloading https://api.github.com/repos/symfony/console/zipball/1ece22ce0c2d54572dafcd114cc08c0031cc0ac3
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/symfony/console/legacy.zip/1ece22ce0c2d54572dafcd114cc08c0031cc0ac3
Downloading https://codeload.github.com/symfony/console/legacy.zip/1ece22ce0c2d54572dafcd114cc08c0031cc0ac3
Downloading (100%)Writing /root/.composer/cache/files/symfony/console/2b2720bb19d5de267d64ada104c0a1654a41e51c.zip into cache from /data/vendor/symfony/console/48d441d11b5d66bec6fe351df6221c04

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/symfony/console/48d441d11b5d66bec6fe351df6221c04' -d '/data/vendor/composer/1653d4aa'
    REASON: nunomaduro/collision 4.x-dev requires symfony/console ^5.0 -> satisfiable by symfony/console[v5.0.0].

  - Installing psr/log (1.1.2): Downloading https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/php-fig/log/legacy.zip/446d54b4cb6bf489fc9d75f55843658e6f25d801
Downloading https://codeload.github.com/php-fig/log/legacy.zip/446d54b4cb6bf489fc9d75f55843658e6f25d801
Downloading (100%)Writing /root/.composer/cache/files/psr/log/3cbd52d9b69b041a06845d06b1b2004a756cb188.zip into cache from /data/vendor/psr/log/6f38df757329296963bb07c4af9a8aae

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/psr/log/6f38df757329296963bb07c4af9a8aae' -d '/data/vendor/composer/033cfa60'
    REASON: filp/whoops 2.5.0 requires psr/log ^1.0.1 -> satisfiable by psr/log[1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2].

  - Installing filp/whoops (2.5.0): Downloading https://api.github.com/repos/filp/whoops/zipball/cde50e6720a39fdacb240159d3eea6865d51fd96
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/filp/whoops/legacy.zip/cde50e6720a39fdacb240159d3eea6865d51fd96
Downloading https://codeload.github.com/filp/whoops/legacy.zip/cde50e6720a39fdacb240159d3eea6865d51fd96
Downloading (100%)Writing /root/.composer/cache/files/filp/whoops/09e0e06ca28db2b5b8efcf1185eb8317d7da5393.zip into cache from /data/vendor/filp/whoops/9375795a09bbc7d421bcad291dc98ce4

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/filp/whoops/9375795a09bbc7d421bcad291dc98ce4' -d '/data/vendor/composer/e710c38e'
    REASON: nunomaduro/collision 4.x-dev requires filp/whoops ^2.4 -> satisfiable by filp/whoops[2.4.0, 2.4.1, 2.5.0].

  - Installing nunomaduro/collision (dev-next 77dab00): Downloading https://api.github.com/repos/nunomaduro/collision/zipball/77dab005bdfd5a2ca876b3a25f324e38fe9078b1
Downloading (connecting...)
Following redirect (2) https://codeload.github.com/nunomaduro/collision/legacy.zip/77dab005bdfd5a2ca876b3a25f324e38fe9078b1
Downloading https://codeload.github.com/nunomaduro/collision/legacy.zip/77dab005bdfd5a2ca876b3a25f324e38fe9078b1
Downloading (100%)Writing /root/.composer/cache/files/nunomaduro/collision/d10040bdde9ce242797bd0f8e964d4aea753ba62.zip into cache from /data/vendor/nunomaduro/collision/c7ec33093cb549c13bedd6d0b245fe2e

 Extracting archiveExecuting command (CWD): unzip -qq  '/data/vendor/nunomaduro/collision/c7ec33093cb549c13bedd6d0b245fe2e' -d '/data/vendor/composer/83fd28ee'
  - Marking nunomaduro/collision (4.x-dev 77dab00) as installed, alias of nunomaduro/collision (dev-next 77dab00)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Reading /data/vendor/composer/installed.json
Writing lock file
Generating autoload files

@nunomaduro
Copy link
Owner

Don't worry too much about the UI. Thanks for this.

@GrahamCampbell
Copy link
Contributor Author

Well, the API also didn't return the version correctly. Composer seemed to look inside the dev-* stuff for the branch aliases, in a way that it doesn't when installing laravel/framework.

Anyway, there is not an issue with this repo. The issue is with Packagist. I'm sure you've done everything right with the branch aliases.

@GrahamCampbell
Copy link
Contributor Author

http://repo.packagist.org/p/laravel/framework%24a7c2cfd6b0b4112fc8c36cbec4fffd6eb3c17cc3aafc5bca3a496a862d3dd87b.json has the 6.x-dev versions explicitly:

image

@GrahamCampbell
Copy link
Contributor Author

I'm not sure what this other package is though....

image

@Seldaek
Copy link

Seldaek commented Nov 28, 2019

laravel/framework has a 6.x-dev explicitly because it has a 6.x branch.. this repo has dev-next with an alias for 4.x, which is shown at https://packagist.org/packages/nunomaduro/collision#dev-next
image

but it has no 4.x branch so that's not shown as a standalone version.

@GrahamCampbell
Copy link
Contributor Author

But laravel/framework 7.x-dev shows up.

image

Compared to:

image

@Seldaek
Copy link

Seldaek commented Nov 29, 2019

true, that looks like a bug

@nunomaduro
Copy link
Owner

@GrahamCampbell we both were right after all. ☺️

@Seldaek
Copy link

Seldaek commented Dec 7, 2019

Fixed now

@GrahamCampbell
Copy link
Contributor Author

@Seldaek Nice. 👍

@GrahamCampbell
Copy link
Contributor Author

FYI composer/packagist@ce58c1d

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

No branches or pull requests

3 participants