From 201116648e96c5134069f0d105fa8d625ff8a8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Tue, 25 Apr 2017 22:12:35 -0500 Subject: [PATCH] Take into account COMPOSER_VENDOR_DIR env variable --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 36e393a0c..aaddba307 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,7 +17,7 @@ if File.exist?("#{host_project_dir}/composer.json") end # If Drupal VM is a Composer dependency set the correct path. - vendor_dir = composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor') + vendor_dir = ENV['COMPOSER_VENDOR_DIR'] || composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor') drupalvm_path = "#{vendor_dir}/geerlingguy/drupal-vm" if Dir.exist?("#{host_project_dir}/#{drupalvm_path}") host_drupalvm_dir = "#{host_project_dir}/#{drupalvm_path}"