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

Could not find a version of package matching your minimum-stability (stable) #9

Closed
giovannipds opened this issue Apr 20, 2018 · 7 comments

Comments

@giovannipds
Copy link

Hello.

composer require alexndreazevedo/egoi-api-php shows this message:

  [InvalidArgumentException]

  Could not find a version of package alexndreazevedo/egoi-api-php matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
@giovannipds
Copy link
Author

giovannipds commented Apr 20, 2018

I could load it with this schema:

package.json:

{
    "require": {
        "alexndreazevedo/egoi-api-php": "dev-master",
        "php": ">=5.3.0",
        "ext-curl": "*",
        "ext-json": "*",
        "zendframework/zend-json": "2.5.*@dev",
        "zendframework/zendrest": "*",
        "zendframework/zend-soap": "2.5.*@dev",
        "zendframework/zend-xmlrpc": "2.5.*@dev"
    }
}

@vdyalex
Copy link
Owner

vdyalex commented Apr 23, 2018

The library isn't versioned as it hasn't active development. I'll close the issue.

@vdyalex vdyalex closed this as completed Apr 23, 2018
@giovannipds
Copy link
Author

I've got what you meant but by the time the code is on GitHub, it is versioned, even when it doesn't have releases. I understand the library doesn't have an active development but I also understand the importance of what the contributors have done here, this library helped me make an E-goi integration in less minutes than the official package. Are you sure you want to disregard this? Thanks anyway.

@vdyalex
Copy link
Owner

vdyalex commented Apr 23, 2018

If you have defined minimum-stability in your composer.json, for sure you'll have warning using

$ composer require alexndreazevedo/egoi-api-php

Unless you specify the version:

$ composer require alexndreazevedo/egoi-api-php:dev/master

I understand the need of a version. If you want to submit a PR specifying the version, it's up to you. I haven't time right now.

@giovannipds
Copy link
Author

I haven't, but for default it is stable, which would warn every time. Lower the minimum-stability of a whole project isn't an option I would consider, just for one package.

I've tried to specify the dev-master but it wasn't importing it on my project, though I've tested now in a different repository and it worked normally. It was showing an warn about PHP's version even though it wasn't defined on the package.json file.

Gonna think about what you've suggested. Thank you.

@Emanuel937
Copy link

try to put this on your composer.json
"minimum-stability": "dev"

@Jeyhun023
Copy link

If you are author of package just run this code composer self-update --2. According to composer documentation this command will upgrade your composer version.
If you face any bug you can just run composer self-update --1 to roll back old version.

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

4 participants