Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There is no composer.json file found in module.
Please see https://www.drupal.org/node/2514612
Proposed resolution
Add the composer.json file.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#17 | 2632950-8.patch | 681 bytes | splash112 |
#16 | 2632950-7.patch | 681 bytes | splash112 |
#15 | 2632950-5.patch | 685 bytes | splash112 |
#13 | 2632950-4.patch | 674 bytes | splash112 |
#12 | 2632950-12-add-composer-json-to-module.patch | 1.87 KB | MilosR |
Comments
Comment #2
rakesh.gectcrComment #3
TR CreditAttribution: TR commentedI'd rather not. We don't have any external dependencies that require composer, and hopefully we won't in the future either.
Comment #4
TR CreditAttribution: TR commentedAlso, you don't list the individual Ubercart modules, there's no newline at the end of the file, and IMO authors shouldn't be in there.
Comment #5
TR CreditAttribution: TR commentedComment #6
splash112 CreditAttribution: splash112 commentedSeems Drupal moved to use composer more and more. Maybe a moment to reconsider?
Attached a clean patch, sadly I could not figure out a way to test if it actually worked as designed.
Comment #7
TR CreditAttribution: TR commentedTests fail.
Comment #8
splash112 CreditAttribution: splash112 commentedThanks, trying again. Trying to easy back into development...
Comment #9
splash112 CreditAttribution: splash112 commentedseems this was not as easy as I might have thought...
Comment #10
MilosR CreditAttribution: MilosR at Websolutions Agency commentedComment #11
splash112 CreditAttribution: splash112 commentedThat misses the Rules dependency?
Comment #12
MilosR CreditAttribution: MilosR at Websolutions Agency commentedThanks, updated dependency.
Comment #13
splash112 CreditAttribution: splash112 commentedTrying without the require-dev. Might be that the tests have already some rules integration that messed up things before?
@MilosR your version seems to be requiring the release version of some Ubercart module while tests are done against dev?
Comment #14
TR CreditAttribution: TR commentedThe tests currently run green without the composer.json patch - the reason they're failing is because the proposed composer.json does not specify the same dependencies as the working .info.yml files.
uc_order is the only module that requires Rules, and it requires the current -dev version of Rules:
uc_order/uc_order.info.yml: - rules:rules (>8.x-3.x-alpha5)
Comment #15
splash112 CreditAttribution: splash112 commentedCool, thanks!
Comment #16
splash112 CreditAttribution: splash112 commentedanother try
Comment #17
splash112 CreditAttribution: splash112 commentedlovely
Comment #18
rakesh.gectcr