Closed (fixed)
Project:
Colorbox
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2016 at 18:01 UTC
Updated:
2 Nov 2016 at 19:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thebruce commentedHere is the patch - within the context of a drupal site it will install the colorbox library into the libraries folder on a composer update using either a well curated composer.json in your root or the composer manager module.
Comment #3
thebruce commentedI will need to circle back around to provide a complete how to test script -- which I will do as soon as I can.
Comment #4
frjo commentedComment #5
wellme commentedThanks for this patch. Using this patch composer can download colorbox library in libraries and composer in vendor folder.
Comment #7
frjo commentedCommitted, thanks for the contribution.
Comment #8
MaskOta commentedI tried installing the module with composer require:8.x-1.x-dev
but i get the following:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for drupal/colorbox 8.x-1.x-dev -> satisfiable by drupal/colorbox[dev-8.x-1.x].
- drupal/colorbox dev-8.x-1.x requires jackmoore/colorbox master -> no matching package found.
what am i doing wrong?
Thanks
Comment #9
MaskOta commentedMy bad, i was missing a crucial plguin in my json file that handles this kind of situations.
Comment #10
bkildow commented@MaskOta, I'm getting the same error. What did you do to resolve?
Comment #11
MaskOta commentedSorry, i was wrong. The plugin didn't matter actually. I still strugle with composer.
After a day of reading about this issue the only solution i was able to find is to copy the repository code to the root composer.json file.
Comment #13
hussainwebThat's right. Composer only reads repositories from the root JSON file. This means that you may require the library you add but it won't work until the package is added in the main composer.json file. It is a useful thing which could be documented in README perhaps but if this is now in composer.json, I would suggest that it should be removed. It gives a wrong impression that it works without the root JSON file changes.
Comment #14
heddn#2814045: composer.json issue in latest dev and 1.2.0 is opened to fix things that this seems to have broken.