BluesparkLabs / spark

✨ Toolkit to develop, test and run Drupal websites.
MIT License
2 stars 1 forks source link

Spark fails on RHEL #16

Closed jameswilson closed 6 years ago

jameswilson commented 6 years ago

The error being reported suggests that ${PWD} is not recognized on RHEL command line.

composer run spark drupal:backup --timeout=0
> SPARK_WORKDIR=$

Unknown macro: {PWD}
robo --ansi --load-from vendor/bluesparklabs/spark 'drupal:backup'

There are no commands defined in the "drupal" namespace.

Script SPARK_WORKDIR=$

robo --ansi --load-from vendor/bluesparklabs/spark handling the spark event returned with error code 1​

This appears to be related to the following line of code in composer.drupal8.json:

    "scripts": {
        ...
        "robo": "SPARK_WORKDIR=${PWD} robo --ansi --load-from vendor/bluesparklabs/spark"
    },

https://github.com/BluesparkLabs/spark/blob/385498f47951f36a66396b2221c6973067fd369a/composer/composer.drupal8.json#L41

jameswilson commented 6 years ago

We think that possibly using

SPARK_WORKDIR=`pwd`

might be an appropriate fix for this.