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

Package not available via Composer #1

Closed
chippyash opened this issue Jul 7, 2014 · 2 comments
Closed

Package not available via Composer #1

chippyash opened this issue Jul 7, 2014 · 2 comments

Comments

@chippyash
Copy link

Using either
"require" {
"florianwolters/component-core-debugprint": "dev-master"
}
as specified at Packagist.org
or

"require" {
"florianwolters/component-core-debugprint": "0.2.*"
}
as specified in Git readme leads to error:

Problem 1
- Installation request for florianwolters/component-number-fraction dev-master -> satisfiable by florianwolters/component-number-fraction[dev-master].
- florianwolters/component-number-fraction dev-master requires florianwolters/component-core-debugprint dev-master -> no matching package found.

i.e. this package nor those that depend on it are installable.

@FlorianWolters
Copy link
Owner

Hello, thanks for your issue report. Composer changed their compatibility settings some time ago, which may be a problem for you (regarding your local Composer settings).

But your error output seems weird, since florianwolters/component-number-fraction is mentioned, which isn't used by this component or its dependent component florianwolters/component-core-hashcode.

I tested the following composer.json file with the latest composer version e77435cd0c984e2031d915a6b42648e7b284dd5c 2014-07-02 15:44:54:

{
    "require": {
        "florianwolters/component-core-debugprint": "0.2.*"
    }
}

Running composer install produces the following output:

Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing florianwolters/component-core-hashcode (v0.2.1)
    Loading from cache

  - Installing florianwolters/component-core-debugprint (v0.2.0)
    Loading from cache

Writing lock file
Generating autoload files

Looks good. I also updated both components to v0.3.0 (lots of cosmetic changes). and tested it with the following composer.json file:

{
    "require": {
        "florianwolters/component-core-debugprint": "0.3.*"
    }
}

Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing florianwolters/component-core-hashcode (v0.3.0)
    Loading from cache

  - Installing florianwolters/component-core-debugprint (v0.3.0)
    Loading from cache

Writing lock file
Generating autoload files

Looks good too.

To make sure that a project depending on a dev version of this component is installable via Composer, you can also try the following:

{
    "minimum-stability": "dev",
    "require": {
        "florianwolters/component-number-fraction": "dev-master"
    }
}

To conclude, I can't reproduce your problem without further information.

@chippyash
Copy link
Author

Thanks Florian. Minimum stability did the trick.

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

2 participants