Closed d3mo17 closed 10 years ago
I consume it in several of my projects and and I don't have this problem, may be you can post your composer.json for further details?
Now I have a "workaround". I don't know why the wildcard in minimum-stability fails, but if I replace
"require": {
"php": ">=5.3",
"mnabil/composer-custom-directory-installer": "*"
}
by
"require": {
"php": ">=5.3",
"mnabil/composer-custom-directory-installer": "dev-master"
}
the installation succeds - weird !?!
may be you have the minimum-stability
explicitly in your composer.json, then you need to define a version
for the packages you are consuming, it is weird!!
can you send me your version of composer.json ?
may be i can fix it for later? I would appreciate it :)
Sure - here you are:
{ "config": { "vendor-dir": "php/lib" }, "repositories": [ { "type": "vcs", "url": "git@github.com:mnabil/composer-installer-plugin.git" } ], "require": { "php": ">=5.3", "mnabil/composer-custom-directory-installer": "*" } }
This was my first attempt that went wrong. Thank you for your support!
Well, I spotted the issue thankfully to you :)
since my package doesn't define a stable version
, and according to the composer documentation
This defines the default behavior for filtering packages by stability. This defaults to stable, so if you rely on a dev package, you should specify it in your file to avoid surprises
so, it will look for stable
package version.
I will fix that :)
thank you
I cannot install the package as described in the readme.md. I get the following output from "composer install":
" Loading composer repositories with package information Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
Potential causes:
Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems. "
Maybe it could be a Problem caused by https://github.com/mnabil/composer-installer-plugin/commit/fcd45b4811c4a1bf38da8ceb8641fbd571057bc4?