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

Most upvoted comments

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

[InvalidArgumentException]
Package phpbb/epv at version dev-master has a PHP requirement incompatible
with your PHP version (5.4)

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.