summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-04-28 12:55:25 -0700
committerGitHub <noreply@github.com>2020-04-28 12:55:25 -0700
commitbd1cc11bd3eb5c5ad1dccbfecd0c8544a7cd49df (patch)
treeb07730fac874156540f20462574d3cf421042323
parente944a0a5f8d38a33f8e2d3c2ba9ed89d04be389d (diff)
parent01fc4a03c3cb909dd1045690f8b81256ce9bd6fa (diff)
downloadchef-bd1cc11bd3eb5c5ad1dccbfecd0c8544a7cd49df.tar.gz
Merge pull request #9759 from chef/lcg/support-unbundled-rake
-rw-r--r--Rakefile5
-rw-r--r--chef-bin/Rakefile2
2 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index b54411af4c..a147fc3435 100644
--- a/Rakefile
+++ b/Rakefile
@@ -17,6 +17,9 @@
# limitations under the License.
#
+# we need this to resolve files required by lib/chef/dist
+$LOAD_PATH.unshift(File.expand_path("../chef-config/lib", __FILE__))
+
begin
require_relative "tasks/rspec"
require_relative "tasks/dependencies"
@@ -27,6 +30,8 @@ rescue LoadError => e
puts "Skipping missing rake dep: #{e}"
end
+require "bundler/gem_helper"
+
ENV["CHEF_LICENSE"] = "accept-no-persist"
# hack the chef-config install to run before the traditional install task
diff --git a/chef-bin/Rakefile b/chef-bin/Rakefile
index 5626d1bc5d..5e5c9bbf5f 100644
--- a/chef-bin/Rakefile
+++ b/chef-bin/Rakefile
@@ -1,6 +1,8 @@
# we need to force the install in order to overwrite the binstubs from
# old chef gems.
+require "bundler/gem_helper"
+
Bundler::GemHelper.install_tasks
# this is necessary to use to overwrite any chef-14 or earlier era gem which has the bin files in