composer: Composer detected version incorrectly
- Composer version: 1.5.3
- Composer command:
composer require satooshi/php-coveralls dev-master
- Composer error output:
[InvalidArgumentException]
Could not find package satooshi/php-coveralls in a version matching dev-master
As title, the version seems to be incorrect during finding the current version.
But using the Composer version 1.5.2
is successful.
I think it’s the bug.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 24 (12 by maintainers)
Commits related to this issue
- Fix require command when specifying non-stable versions, fixes #6859 — committed to composer/composer by Seldaek 7 years ago
- Fix require command picking of specific versions, fixes #6859 — committed to composer/composer by Seldaek 7 years ago
- downgrade to composer 1.5.2 To avaoid problems with https://github.com/composer/composer/issues/6859 — committed to ipunkt/docker-backup-restore by deleted user 7 years ago
- Install global composer packages separately instead of in one go Until the composer bug is fixed: https://github.com/composer/composer/issues/6859 — committed to jakzal/phpqa by jakzal 7 years ago
- Fix issue when requiring multiple packages once without and once with explicit version, fixes #6859 — committed to composer/composer by Seldaek 7 years ago
- Follow ignore-platform-reqs when checking for package requirements, fixes #6859 — committed to composer/composer by Seldaek 6 years ago
Sorry folks, I thought I got to the bottom of it but I guess not. I’ll have another look.
#6860 still fails for me…
1.5.4 is out correcting this.
Still fails with 1.5.6 here https://travis-ci.org/phpbb-extensions/ad-management/jobs/320703184#L609
Rolling back to 1.5.2 fixes the issue: https://github.com/phpbb-extensions/ad-management/pull/105/files
@Seldaek
I have seen a fun behavior here.
When have reposity
{ "type": "composer", "url": "https://composer.domain.tld" }
It doesn’t work,but with (satis):
{ "type": "git", "url": "git@domain.tld:repository" }
Then it works, I don’t know if it has a relation to satis in combination with composer and satis.Alright I’ll get another release out then.