Skip to content

Commit

Permalink
Revert "Fix ENV[BUNDLE_GEMFILE] with file overwrite"
Browse files Browse the repository at this point in the history
This reverts commit b89f3e8.
  • Loading branch information
TonyCTHsu committed Jul 5, 2024
1 parent 28f84c7 commit 3d44b89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib-injection/host_inject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ def dd_send_telemetry(events)

# Also apply to the environment variable, to guarantee any spawned processes will respected the modified `GEM_PATH`.
ENV['GEM_PATH'] = Gem.path.join(':')
::FileUtils.cp datadog_gemfile, gemfile
::FileUtils.cp datadog_lockfile, lockfile
ENV['BUNDLE_GEMFILE'] = datadog_gemfile.to_s

dd_send_telemetry([{ name: 'library_entrypoint.complete', tags: ['injection_forced:false'] }])
end
Expand Down

0 comments on commit 3d44b89

Please sign in to comment.