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

Outdated command shows up2date packages #9357

Closed
mmarton opened this issue Oct 27, 2020 · 3 comments
Closed

Outdated command shows up2date packages #9357

mmarton opened this issue Oct 27, 2020 · 3 comments
Labels
Milestone

Comments

@mmarton
Copy link

mmarton commented Oct 27, 2020

My composer.json:

{
    "require": {
        "phpunit/phpunit": "@dev"
    }
}

Output of composer diagnose:

Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
require.phpunit/phpunit : unbound version constraints (@dev) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.2
PHP version: 7.4.11
PHP binary path: /usr/bin/php7.4
OpenSSL version: OpenSSL 1.1.1g  21 Apr 2020
cURL version: 7.58.0 libz 1.2.11 ssl OpenSSL/1.1.1g
zip extension: OK

When I run this command:

composer outdated

I get the following output:

phpunit/phpunit dev-master 09ba0b8 9.5.x-dev 09ba0b8 The PHP Unit Testing framework.

And I expected this to happen:

with the same commit hash this package is up to date and sholdn't appear in the outdated list. This has nothing to do with phpunit, every @dev or, dev-branchname, or dev-branchname#commithash "version" shows up in the outdated list.

@Seldaek
Copy link
Member

Seldaek commented Oct 27, 2020

That might be due to the new branch alias alias handling in composer 2. Will have to check, thanks for the report.

@Seldaek Seldaek added the Bug label Oct 27, 2020
@Seldaek Seldaek added this to the 2.0 milestone Oct 27, 2020
@Seldaek
Copy link
Member

Seldaek commented Oct 27, 2020

You can try and confirm the fix with composer self-update --snapshot if you like.

@mmarton
Copy link
Author

mmarton commented Oct 28, 2020

It works with 2.0.3, thanks for the quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants