Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Drupal 9: Duplicate key "core|version" detected #39

Open
lkmorlan opened this issue Apr 19, 2021 · 2 comments
Open

In Drupal 9: Duplicate key "core|version" detected #39

lkmorlan opened this issue Apr 19, 2021 · 2 comments

Comments

@lkmorlan
Copy link
Contributor

When running this in Drupal 9, I am seeing:

Unable to parse ....info.yml Duplicate key "core" detected at line 13 (near "core: '8.x'").

Unable to parse ....info.yml Duplicate key "version" detected at line 9 (near "version: '8.x-3.4'").

info-rewrite adds a core key, but this is often already present (though it should now be core_version_requirement). Info files often have version: VERSION. info-rewrite will probably need to update version: VERSION instead of appending a second version key with the actual version.

@Pasqualle
Copy link
Contributor

dev modules should not have a "version" key.
"core" key is a problem, info-rewrite should not add that any more.

@lkmorlan
Copy link
Contributor Author

It should probably also not add a version key if one already exists. I know that version should not already exist, but in modules, it's there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants