Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 2011166

Browse files
committed
Take into account COMPOSER_VENDOR_DIR env variable
1 parent 7158dbd commit 2011166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vagrantfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if File.exist?("#{host_project_dir}/composer.json")
1717
end
1818

1919
# If Drupal VM is a Composer dependency set the correct path.
20-
vendor_dir = composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor')
20+
vendor_dir = ENV['COMPOSER_VENDOR_DIR'] || composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor')
2121
drupalvm_path = "#{vendor_dir}/geerlingguy/drupal-vm"
2222
if Dir.exist?("#{host_project_dir}/#{drupalvm_path}")
2323
host_drupalvm_dir = "#{host_project_dir}/#{drupalvm_path}"

0 commit comments

Comments
 (0)