Skip to content

Commit

Permalink
Merge pull request rubygems#7503 from nobu/global_cache-clear-rf
Browse files Browse the repository at this point in the history
Clear generated files recursively
  • Loading branch information
hsbt authored Mar 5, 2024
2 parents 1ab7879 + 375c127 commit 62a21b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/spec/install/global_cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def source2_global_cache(*segments)
R
expect(out).to eq "VERY_SIMPLE_BINARY_IN_C\nVERY_SIMPLE_GIT_BINARY_IN_C"

FileUtils.rm Dir[home(".bundle", "cache", "extensions", "**", "*binary_c*")]
FileUtils.rm_rf Dir[home(".bundle", "cache", "extensions", "**", "*binary_c*")]

gem_binary_cache.join("very_simple_binary_c.rb").open("w") {|f| f << "puts File.basename(__FILE__)" }
git_binary_cache.join("very_simple_git_binary_c.rb").open("w") {|f| f << "puts File.basename(__FILE__)" }
Expand Down

0 comments on commit 62a21b4

Please sign in to comment.