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.
It is useful for us to reference system-wide include files. For example, we would like to override the aegir makefile in our own distribution, this way:
includes[aegir] = "/var/aegir/.drush/provision/aegir.make"
or, with the debian package:
includes[aegir] = "/usr/share/drush/commands/provision/aegir.make"
Neither works. The documentation says the path is "relative" but doesn't explicitely say that absolute paths are forbidden. I tried an absolute path, thinking myself very smart, but that didn't work either:
includes[aegir] = "../../../../usr/share/drush/commands/provision/aegir.make"
... even though that actually works on the commandline.
This needs to be clarified in the documentation or clearly allowed. I would like to see this implemented.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1118616_absolutes.patch | 905 bytes | anarcat |
Comments
Comment #1
anarcat CreditAttribution: anarcat commentedFirst pass. Simple enough, works here.
Comment #2
Dane Powell CreditAttribution: Dane Powell commentedSubscribe- I need this for the same reason. The patch in #1 seems to work fine. Thanks!
Comment #3
anarcat CreditAttribution: anarcat commentedAwesome! Just what I needed!
I committed the patch to 2.x (a2b2a01) and 3.x (61f23ea), thanks for the testing!