0

I have a composer package that in turn should load a couple of dependencies, but is not.

My top level (testing project) composer,json:

"require": {
    "php": ">=5.6.4",
    "laravel/framework": "5.3.*"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~5.0",
    "symfony/css-selector": "3.1.*",
    "symfony/dom-crawler": "3.1.*",
    "jrmadsen67/mahana-generator-scaffolding": "dev-master@dev"
},

From jrmadsen67/mahana-generator-scaffolding (full file here: https://github.com/jrmadsen67/MahanaGeneratorScaffolding/blob/master/composer.json) - (I've tried with "minimum-stability": "dev" but that did not make any difference)

"require": {
    "php": ">=5.4",
    "illuminate/support": "~5.0"
},
"require-dev": {
    "phpunit/phpunit": "~4.0",
    "phpspec/phpspec": "~2.1",
    "jrmadsen67/mahana-laravel5-generators": "dev-master",
    "laracasts/generators": "dev"
},

jrmadsen67/mahana-laravel5-generators can be found here: https://github.com/jrmadsen67/mahana-laravel5-generators

laracasts/generators is a several years old project. Both the Generators dependent packages load fine individually; the issue is something in how I am trying to call them from the parent composer.json, I'm sure.

TIA!

1
  • "The requested package laracasts/generators dev exists as laracasts/generators[1.0, 1.0.1, 1.0.2, 1.0.3, 1.1, 1.1.1, 1.1.2, 1.1.3, dev-master] but these are rejected by your constraint." Commented Sep 14, 2016 at 20:46

1 Answer 1

2

I cloned your jrmadsen67/mahana-generator-scaffolding repo, did composer installand got the following error:

The requested package laracasts/generators dev exists as laracasts/generators[1.0, 1.0.1, 1.0.2, 1.0.3, 1.1, 1.1.1, 1.1.2, 1.1.3, dev-master] but these are rejected by your constraint.

So, I forked your repo, changed the laracasts/generators constraint to "dev-master" instead. Then, I tested my fork and it seemed to install fine.

I made PR, but it's a simple fix you can make in about 2 seconds if this helps out your issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.