-
Notifications
You must be signed in to change notification settings - Fork 5
Description
The upgrade status report shows the following error:
The PHPStan binary was not found in the default vendor directory based on the location of /data/app/composer.json. You may need to configure a vendor-dir in composer.json. See https://getcomposer.org/doc/06-config.md#vendor-dir. Attempted: /data/app/vendor/bin/phpstan. Scanning is not possible until this is resolved.
This tracks back to webflo/drupal-finder#48 which is resolved by webflo/drupal-finder#55. At this point in time there is no release with this fix (as per webflo/drupal-finder#57).
For now we could fix this with the following:
composer require "webflo/drupal-finder:dev-master as 1.2.2"
And setting the DRUPAL_FINDER
env vars:
DRUPAL_FINDER_DRUPAL_ROOT=/data/app
DRUPAL_FINDER_COMPOSER_ROOT=/data
DRUPAL_FINDER_VENDOR_DIR=/data/vendor
For a very quick workaround you can delete app/composer.json
as this will allow DrupalFinder to search the parent directory to find composer.json.