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

Configuration with composer.json fails #2

Closed
d3mo17 opened this issue Feb 19, 2014 · 5 comments
Closed

Configuration with composer.json fails #2

d3mo17 opened this issue Feb 19, 2014 · 5 comments

Comments

@d3mo17
Copy link

d3mo17 commented Feb 19, 2014

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
- The requested package mnabil/composer-custom-directory-installer could not be found in any version, there may be a typo in the package name.

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
"

Maybe it could be a Problem caused by fcd45b4?

@mnsami
Copy link
Owner

mnsami commented Feb 19, 2014

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?

@d3mo17
Copy link
Author

d3mo17 commented Feb 19, 2014

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 !?!

@mnsami
Copy link
Owner

mnsami commented Feb 19, 2014

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 :)

@d3mo17
Copy link
Author

d3mo17 commented Feb 19, 2014

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!

@mnsami
Copy link
Owner

mnsami commented Feb 19, 2014

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

@mnsami mnsami closed this as completed Feb 19, 2014
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