2020-01-31 10:06:23 +01:00
|
|
|
From d8a6e1573ee0b845b851c760ceced71f250e9576 Mon Sep 17 00:00:00 2001
|
2019-09-15 11:45:25 +02:00
|
|
|
From: Pavel Valena <pvalena@redhat.com>
|
|
|
|
Date: Mon, 1 Jul 2019 17:44:54 +0200
|
2020-01-31 10:06:23 +01:00
|
|
|
Subject: [PATCH 11/12] Do not list / load dependencies if `vagrant` spec is
|
2019-09-15 11:45:25 +02:00
|
|
|
not loaded
|
|
|
|
|
|
|
|
in `vagrant_internal_specs` as this fails, due to `find` returning `nil`.
|
|
|
|
---
|
|
|
|
lib/vagrant/bundler.rb | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb
|
|
|
|
index 7ba48435f..c0fabdcea 100644
|
|
|
|
--- a/lib/vagrant/bundler.rb
|
|
|
|
+++ b/lib/vagrant/bundler.rb
|
|
|
|
@@ -421,8 +421,9 @@ module Vagrant
|
|
|
|
def vagrant_internal_specs
|
|
|
|
# activate any dependencies up front so we can always
|
|
|
|
# pin them when resolving
|
|
|
|
- Gem::Specification.find { |s| s.name == "vagrant" && s.activated? }.
|
|
|
|
- runtime_dependencies.each { |d| gem d.name, *d.requirement.as_list }
|
|
|
|
+ if (vs = Gem::Specification.find { |s| s.name == "vagrant" && s.activated? })
|
|
|
|
+ vs.runtime_dependencies.each { |d| gem d.name, *d.requirement.as_list }
|
|
|
|
+ end
|
|
|
|
# discover all the gems we have available
|
|
|
|
list = {}
|
|
|
|
directories = [Gem::Specification.default_specifications_dir]
|
|
|
|
--
|
2020-01-31 10:06:23 +01:00
|
|
|
2.25.0
|
2019-09-15 11:45:25 +02:00
|
|
|
|