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
Can't install alternate distribution releases with composer #41
Comments
This time using the correct full package Also used the branch + tag commit to work around that bug: ckeditor/ckeditor4-releases#41
That does not work in general with composer libraries. You simply do not see the versions unless you're on stability dev. |
This is what worked: @oleq @Reinmar @mlewand To my understanding, using a |
Thanks @schmunk42 for your insights. The documentation still needs updating though… |
It looks that Comopser is simply not handling tags that way, since branches are working correctly. You can see Fetching a Particular Build Preset section in our docs to find pretty much what @schmunk42 has suggested, so the docs are fine here. As for workaround, since Composer doesn't play well with tags that contain backslash, you could simply pin the requirement to a given hash.
Yes, these branches do not follow SemVer - we simply added them to allow devs to fetch a particular build. |
@mlewand Thanks for your comment. |
I haven't really tested it, but would you consider an additional tag like |
The problem with composer and multiple distributions is, because of the fact that ckeditor is often included as a dependency, that you can not specify a version constraint like If you wanna include a full version, you have to "patch" your root Would be really nice, if you could provide a solution for this. |
And how would Composer resolve anything like |
Tried it with a fork and it does not work :( See my issue in composer/composer... |
Any chance to make this happen?
composer/composer#6489 (comment) [edit] |
It is a possibility, I created #69 for this, however it's not a hi priority for us ATM as it will require a bit of work to make it happen (and maintain backward compat). |
Following the docs at http://ckeditor.com/blog/CKEditor-Supports-Bower-and-Composer, I tried the following code:
Unfortunately composer fails with the following message:
On the other hand branches seem to work OK. Unfortunately, I work with a very picky project manager that wants all dependencies to be pinned versions.
Is there any workarounds?
The text was updated successfully, but these errors were encountered: