-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Bower not picking up versioned dependency #312
Comments
This is not possible because it's the Solver SAT of the Composer that is responsible to resolve the dependencies, and that the |
I believe this is a different question, here the vendors are the same for both sides of the |
Did you try the resolution section? |
I saw it but I don't think it is relevant to my problem. Expanded explanation:
|
Ok, I understand better now. I think this may be possible to turn each dependency into another dependency with a map for the conversion. But this map will only be available for the Composer root package. |
What does this mean? Let's take an example: composer.json: {
"require": {
"fxp/composer-asset-plugin": "~1.3",
"npm-asset/jquery": "^1",
"bower-asset/jquery-2.x": "^2",
"bower-asset/example": "*",
},
"config": {
"fxp-asset": {
"installer-paths": {
"npm-asset-library": "vendor/asset",
"bower-asset-library": "vendor/asset"
},
"satisfies": {
"bower-asset/jquery-2.x": "bower-asset/jquery"
}
}
},
}
|
Because the config section is only available for the Composer root package. The |
So, would I be able to require |
Yes, of course. |
Ok, I was just making sure. Thank you so much for the answers! |
Related to #311
Since https://github.com/friendica/friendica already has the
npm-asset/jquery:^1.11.4
dependency and we are using the same asset directory for both repositories, I tried importingbower-asset/jquery-2.x
to satisfy a new Bower dependency.However, Bower went on and still installed
bower-asset/jquery:^3.3
which overwrote/vendor/asset-folder/jquery
.How can I direct bower to use the versioned dependency for subsequent imports?
It could look something like:
The text was updated successfully, but these errors were encountered: