I've been working on the drupal/chessboard 8.x-2.x branch and had released 8.x-2.0-unstable3. Recently I found some time, I finally decided to bite the bullet and moved all submodules into their own drupal projects. (Currently 1.0.x branches). I also created a chessboard 3.0.x branch and removed the submodules from that branch. (I also released 8.x-2.0-alpha1 which now resolves unlike the unstable releases)
So now I would like to make dependencies work for the new projects and so I'm requesting to swap namespaces/ composer packages names for the "submodules". So for example drupal/chessboard_lib would then map to the chessboard_lib project instead of to the chessboard project. (Now I need to require drupal/chessboard_lib-chessboard_lib). (And then for the chessboard project 2.x submodule you would need to require drupal/chessboard-chessboard_lib which is totally fine. Nobody is using that. I'm still going to maintain an identical branch though.)
- chessboard_lib:chessboard_lib vs chessboard:chessboard_lib
- chessboard_field:chessboard_field vs chessboard:chessboard_field
- chessboard_filter:chessboard_filter vs chessboard:chessboard_filter
- chessboard_images:chessboard_images vs chessboard:chessboard_images
- chessboard_images_formatter:chessboard_images_formatter vs chessboard:chessboard_images_formatter
- chessboard_plain_text_formatter:chessboard_plain_text_formatter vs chessboard:chessboard_plain_text_formatter
Even though I'm pretty sure that no drupal.org project has a dependency on one of my dev-2.x chessboard submodules I still plan to create 2.0.x branches (and releases) for these new Drupal projects that will have code identical to their corresponding 8.x-2.x submodule, so swapping the namespaces should have no impact with proper dependency management.
Thanks a lot!
Comments
Comment #2
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #3
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #4
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #5
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #6
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #7
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedComment #8
Eric_A CreditAttribution: Eric_A at Dutch Open Projects commentedI guess I could just explicitly namespace all dependencies in the extracted Drupal projects with their project name. It's just that I haven't seen explicit project namespaces being used. Maybe I've seen this once somewhere, can't remember. Is there a (theoretical) downside?
Comment #9
hestenetHello @Eric_A
This one slipped through the cracks a long time ago.
The only one we saw that was able to modify was chessboard_lib so we have adjusted the namesporces:
Project: chessboard's old chessboard_lib composer namespace is now: drupal/chessboard-chessboard_lib
And the new separate project: chessboard_lib has the composer namespace: drupal/chessboard_lib
Please feel free to re-open if the others move out of the parent module from this point forward.