A
A
Andrey Sanych2017-09-20 13:46:35
PHP
Andrey Sanych, 2017-09-20 13:46:35

Why is the package not updated through Composer?

This is the situation:
There is a locally installed package of version 0.3.0
Packagist already has a new version of 0.4.0
But the composer update command cannot update the package to the new version. Writes "Nothing to install or update".
Here is composer.json :

{
    "name": "test/test",
    "require": {
        "mountpoint/curl": "^0.3.0"
    },
    "authors": [
        {
            "name": "test",
            "email": "[email protected]"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true
}

Here is a link to the package itself https://packagist.org/packages/mountpoint/curl
What's the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sanych, 2017-09-20
@mountpoint

Problem found. Based on the official docs :
"vendor/package": "^1.3.2", // >=1.3.2 <2.0.0
"vendor/package": "^0.3.2", // >=0.3.2 <0.4.0 // except if major version is 0
I have the second case. That's why it hasn't been updated...

Z
zorca, 2017-09-20
@zorca

Set to dev-master and there will be no problems. It's just that Packagist didn't have time to update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question