If drush make-generate fails with this error:

Unable to create .make file

the solution is to supply a full path to the makefile in a writeable directory:

drush make-generate /path/to/example.make

This solution might seem obvious to anyone familiar with permissions, but:

  • The default error message does not give information such as "permission denied"
  • Nor does it specify the directory where drush is attempting to write the file
  • Many shell commands will automatically create a file in your current directory
  • Finally, at least on my system, you cannot use a relative path. ./example.make won't work.

The easiest solution is probably documentation: a more informative error message, and a note about the option to use a full path in "drush --help make-generate"

Comments

greg.1.anderson’s picture

Version: All-versions-4.x-dev » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If you still need help, please ask your question again on Drupal Answers and then post a link here to the new question. Please also change the status of this issue to closed (duplicate).

Use our Github project for contributing code, or reporting bugs, or requesting features.