Needs work
Project:
Drupal core
Version:
main
Component:
extension system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Mar 2010 at 01:29 UTC
Updated:
18 Feb 2025 at 11:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
valthebaldI think it's too late to be in 8.x
Comment #2
sunComment #3
catchComment #4
sunA new
"conflicts"property was discussed in this related issue and other issues already.The proposal is compatible with the Composer schema, so it is safe to add support for it.
Comment #11
amateescu commentedHere's a work-in-progress patch I started in another issue, which was a duplicate of this one: #2982954: Allow modules to declare conflicts with other modules in their info.yml file
Comment #12
pandaski commentedThanks for the patch. Do we need a test case for it as well?
Comment #15
beautifulmindI am very late to this discussion but I believe, with 'conflicts', the chances of a deadlock are very high.
Comment #22
vensiresThe main question here is what's the action expected when a conflict is found. Depending on what we want the action to be, just by using hook_requirements() we might be ok.
Comment #23
nicxvan commentedYou absolutely can do this with hook_requirements, the plan is to replace the conflicts piece with info yaml or composer.json
Comment #24
vensiresSo far, we have hook_requirements() - which can be bypassed if you use
-yin drush, andcomposer's which may or may not be used for custom modules. My question remains: let's say we have aconflictin *.info.yml; is it there for informational reasons or should it 100% prohibit the coexistence of the module without any bypass?Comment #25
beautifulmindI think it should stop the operation entirely.
Also, adding 'for information purpose' now seems pointless since it'll probably be just taken it out later, saying it's not needed.
Cheers,
Beautifulmind