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.
Please add the composer.json file. So that we can install through composer.
References
- Composer JSON schema: https://getcomposer.org/doc/04-schema.md
- Packagist drupal-composer suggestions: https://packagist.drupal-composer.org/ (important for the drupal-composer project)
Comment | File | Size | Author |
---|---|---|---|
#30 | metatag-n2572469-30.patch | 652 bytes | DamienMcKenna |
#28 | 2572469-28.patch | 904 bytes | rakesh.gectcr |
#9 | composer.json_.patch | 309 bytes | rakesh.gectcr |
#4 | composer.json_.patch | 0 bytes | rakesh.gectcr |
Comments
Comment #2
DamienMcKennaPlease provide a link to some documentation on what we should add. Thanks.
Comment #3
DamienMcKennaComment #4
rakesh.gectcrPlease find the patch
Comment #5
rakesh.gectcrComment #7
DamienMcKenna@rakesh.gectcr: The patch is empty - did you need to do "git diff HEAD" instead of "git diff"?
Comment #8
rakesh.gectcrComment #9
rakesh.gectcrComment #10
rakesh.gectcrComment #12
DamienMcKennaComment #13
DamienMcKennaI just need someone to confirm the accuracy of the file, then I'll commit it.
Comment #14
jaxxed CreditAttribution: jaxxed at Wunder commented@DamienMcKenna : A good place to look at for the accuracy question is here: https://packagist.drupal-composer.org/
There you can see some requirements for contents of the file in order to get "drupal builds by composer" to work with the module.
For a complete file schema breakdown look here: https://getcomposer.org/doc/04-schema.md
----------------------------------------------------------
As you can see, the patch provided has a starting base. Take a look at the layout plugin for a comparison:
I recommend that you also include in this file:
- homepage
- authors
- the minimum stability : dev (while it is not in a stable release) : this has a functional impact on composer!
[edit: removed recommendation for "type:" which I realized is in the existing patch]
Comment #15
jaxxed CreditAttribution: jaxxed at Wunder commentedComment #16
jaxxed CreditAttribution: jaxxed at Wunder commentedthis patch meets the minimum requirements for being usefull. It could use some additional optional stuff.
Comment #24
DamienMcKenna@jaxxed: Thanks for the tips!
Committed.
Comment #25
rakesh.gectcrComment #26
BerdirRe-opening this, the json is not valid and breaks composer_manager and therefore http://d8status.md-systems.ch.
There must not be a , after the second author.
Comment #27
platinum1 CreditAttribution: platinum1 commented@Berdir is correct. The json file indeed breaks composer_manager and therefore brings down the site when composer drupal-update is run again to update the dependencies.
The following composer.json file does work:
Comment #28
rakesh.gectcr@Berdir and platinum1,
I have updated the changes according to the above comments
Comment #29
platinum1 CreditAttribution: platinum1 commented@rakesh.gectcr,
I would suggest adding "metatag" and "meta tag" to the keywords, but functionally it won't make a difference.
Comment #30
DamienMcKennaHow about this?
Comment #31
BerdirI don't really know about the other changes, as a minimal fix, you'd just need to remove the trailing , after the second author. Can't comment on the other changes.
Btw, I've updated my d8status script for now to kill the metatag composer.json until this is fixed.
Comment #33
DamienMcKennaCommitted.
Would it be worth doing a beta2 release to fix this?
Comment #34
platinum1 CreditAttribution: platinum1 commentedAs Beta1 breaks composer_manager, I would say yes. Otherwise users new to metatag, who pick the recommended Beta1 release, end up with a broken site.
Comment #35
DamienMcKennaOk, going to do this and another issue in a new beta2.
Comment #36
DamienMcKennaI've just released 1.0-beta2, give it a few minutes and it'll be ready.
Comment #37
DamienMcKennaI added a new issue to write some tests to help make sure we (cough) don't break the file again: #2621520: Add a test to confirm the composer file is in the correct format