diff options
author | Kanad Kumar <kankumar@progress.com> | 2023-01-17 17:28:03 +0530 |
---|---|---|
committer | Kanad Kumar <kankumar@progress.com> | 2023-01-17 17:28:03 +0530 |
commit | 27f4a89f2f48a9db01378b6dfe566c1a334c1fc3 (patch) | |
tree | dc608f316d74410da4a3a90a50367185fa2026ce | |
parent | f0a1cdf4f276785bfc3c516cd7b0d40f5cbbdf46 (diff) | |
download | chef-kanad/fix-chef-utils.tar.gz |
pin chef-utils to 17.10.25kanad/fix-chef-utils
Signed-off-by: Kanad Kumar <kankumar@progress.com>
-rw-r--r-- | post-bundle-install.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/post-bundle-install.rb b/post-bundle-install.rb index f3b953e7e3..dc3797c7ff 100644 --- a/post-bundle-install.rb +++ b/post-bundle-install.rb @@ -22,6 +22,11 @@ Dir["#{gem_home}/bundler/gems/*"].each do |gempath| puts "re-installing #{gem_name}..." + if gem_name == "ohai" + system("gem install chef-utils -v 17.10.25") or raise "gem build failed" + system("gem install chef-config -v 17.10.25") or raise "gem build failed" + end + Dir.chdir(gempath) do system("gem build #{gem_name}.gemspec") or raise "gem build failed" system("gem install #{gem_name}*.gem --conservative --minimal-deps --no-document") or raise "gem install failed" |