summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-03-23 19:30:30 -0700
committerTim Smith <tsmith84@gmail.com>2021-04-02 09:29:46 -0700
commit3a86aaf7929bd69a18cdb13042fc99bb03be22d6 (patch)
tree4a19f29fa3436e8f8be58c60e7a4b8e22d663415
parentf2b79514baac192ee26eb0ab0a6bef2a94196744 (diff)
downloadchef-3a86aaf7929bd69a18cdb13042fc99bb03be22d6.tar.gz
Fix ruby-prof loading issues
See: https://github.com/ruby-prof/ruby-prof/pull/300 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--omnibus/config/software/more-ruby-cleanup.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/omnibus/config/software/more-ruby-cleanup.rb b/omnibus/config/software/more-ruby-cleanup.rb
index df8bb7cb3e..39fb955486 100644
--- a/omnibus/config/software/more-ruby-cleanup.rb
+++ b/omnibus/config/software/more-ruby-cleanup.rb
@@ -52,7 +52,6 @@ build do
diagrams
example
examples
- ext
Gemfile.lock
install.rb
java
@@ -72,6 +71,8 @@ build do
Dir.glob("#{target_dir}/*/{#{files.join(",")}}").each do |f|
# chef stores the powershell dlls in the ext dir
next if File.basename(File.expand_path("..", f)).start_with?("chef-")
+ # ruby-prof has issues/bugs with needing the so in the ext dir
+ next if File.basename(File.expand_path("..", f)).start_with?("ruby-prof-")
puts "Deleting #{f}"
FileUtils.rm_rf(f)