If a version is set for features with no hosted project, _features_export_generate() in features.admin.inc sets a project key. See https://drupal.org/node/542202#project. While the handbook permits module maintainers to use project_status_url, it discourages using the project key and specifically says module maintainers should not use it. In fact, many contrib modules do not have project keys in their info files. For features not hosted on drupal.org and lacking a project update URL, adding a project key breaks drush because the update module can't find version data for it on drupal.org.
Additionally, the project key is set to the module name. That seems counterintuitive. Assuming a project is hosted on drupal.org, isn't that always the case?
For this reason, I don't think a project key should be added.
After applying the patch, you need to update your existing features.
Remove project from existing features.
find . -type f -exec sed -i "s/project = .*//g" {} \;
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | features-project-2161841-3.patch | 681 bytes | davidwbarratt |
Comments
Comment #1
davidwbarratt commentedhttps://www.drupal.org/node/171205
I'm marking this issue as Ciritical, because Drupal believes this is ciritcal. I get emails witch read:
Drupal also throws this error next to every "Features" module:
You also get this error everytime you check for Updates via the UI or via Drush:
Comment #2
davidwbarratt commentedI've found a workaround.
Since the "Version" field is no longer required, and the conditional for adding the "project" key is this:
Then by simply leaving off the "Version" and the "URL of update XML" you will not get the "project" key written to your module.
However, I do not think this is clear, and I think it's pointless having the project key if both items are not present.
Comment #3
davidwbarratt commentedAttached is a patch that changes the condition from OR to AND. This should make it more difficult to run into this problem and also allow custom Features to have version numbers. :)
Thanks!
Comment #4
kenorb commentedComment #5
tobiasbThx. works for me. I added some notes.
Comment #6
tobiasbComment #7
kenorb commentedComment #8
func0der commentedLegit. Merge please.
Comment #9
mpotter commented