Skip to content

Commit

Permalink
Merge pull request #4042 from DataDog/tonycthsu/ssi-remove-cached-gem
Browse files Browse the repository at this point in the history
Remove cached gems from artifacts
  • Loading branch information
TonyCTHsu authored Oct 29, 2024
2 parents 7f64645 + fe76de9 commit 63c2bc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitlab/install_datadog_deps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@
raise "Missing #{libdatadog_so_file} in #{datadog_gem_path}."
end

cached_gems = Dir.glob(versioned_path.join("cache/*.gem"))

FileUtils.rm_r(
[
*cached_gems,
],
verbose: true
)

FileUtils.cd(versioned_path.join("extensions/#{Gem::Platform.local}"), verbose: true) do
# Symlink those directories to be utilized by Ruby compiled with shared libraries
FileUtils.ln_sf Gem.extension_api_version, ruby_api_version
Expand Down

0 comments on commit 63c2bc1

Please sign in to comment.