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

Dependencies fail to install for Yii 2.0.0 stable install #97

Closed
circulon opened this issue Oct 21, 2014 · 5 comments
Closed

Dependencies fail to install for Yii 2.0.0 stable install #97

circulon opened this issue Oct 21, 2014 · 5 comments
Labels

Comments

@circulon
Copy link

I have been struggling with this all day ;(
As Yii is now at 2.0.0 stable I don't really want to go the minimum-stability:"dev" route.
I have a virgin "basic" install with a couple of models and no other extensions

Following the installation instructions throws a slew of problems like

Your requirements could not be resolved to an installable set of packages.

Problem 1
- kartik-v/yii2-popover-x v1.0.0 requires kartik-v/bootstrap-popover-x * -> no matching package found.
- kartik-v/yii2-editable dev-master requires kartik-v/yii2-popover-x * -> satisfiable by kartik-v/yii2-popover-x[v1.0.0].
- Installation request for kartik-v/yii2-editable dev-master -> satisfiable by kartik-v/yii2-editable[dev-master].

Potential causes:

Got most dependencies to install separately via adding the to composer.json ala
"require": { ...
"kartik-v/yii2-widgets": "dev-master",
"kartik-v/yii2-money": "dev-master",
"kartik-v/yii2-slider": "dev-master",
"kartik-v/yii2-checkbox-x": "dev-master",
"kartik-v/yii2-editable": "dev-master",
"kartik-v/yii2-popover-x": "dev-master",
"kartik-v/yii2-grid": "dev-master"
}

popover-x will not install at all even via this method

What else can I try?

@kartik-v
Copy link
Owner

These extensions will undergo a bit more change as enhancements are planned. Hence a stable release is not yet set for these. This will eventually happen not very late from now... since the stable version of yii has been released.

Would suggest to carefully set the minimum stability - because this will be set across all extensions you use. If doing this, you should set the versions of various dependencies/extensions carefully using the @ pattern.

@circulon
Copy link
Author

As it turns out keeping 'stable' is recommended as per this article https://igor.io/2013/02/07/composer-stability-flags.html

so to use yii2 and its dependencies as stable and yours as dev here is what I did
in composer.json

"minimum-stability": "stable",
"require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": "*",
    "yiisoft/yii2-bootstrap": "*",
    "yiisoft/yii2-swiftmailer": "*",
    "kartik-v/yii2-detail-view": "dev-master",
    "kartik-v/yii2-grid": "dev-master",
    "kartik-v/yii2-widgets": "@dev",
    "kartik-v/yii2-money": "@dev",
    "kartik-v/yii2-slider": "@dev",
    "kartik-v/yii2-checkbox-x": "@dev",
    "kartik-v/bootstrap-popover-x": "@dev",
    "kartik-v/yii2-popover-x": "@dev",
    "kartik-v/yii2-editable": "@dev"

...}

This works perfectly and it does not pull in dev versions of the main framework and its dependencies
For those of us who are using your extension and the stable version off yii2 you might want to note this on the installation page possibly.

Excellent extensions BTW Keep up the good work

@kartik-v
Copy link
Owner

Great you got this resolved. I will put up a wiki for this once I get time for benefit of others.

@kartik-v
Copy link
Owner

I created a web tip / wiki for this for the benefit of others.

@circulon
Copy link
Author

Hey Nice work

I’m sure this will help many devs that are just getting a handle on composer dependencies

Thanks again

On 25 Oct 2014, at 2:24 am, Kartik Visweswaran notifications@github.com wrote:

I created a web tip/wiki http://webtips.krajee.com/setting-composer-minimum-stability-application/ on this for benefit of others.


Reply to this email directly or view it on GitHub #97 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants