Skip to content

Commit

Permalink
Revert "omnibus: don't build the agent twice on heroku (#31572)" (#31625
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chouquette authored Nov 29, 2024
1 parent 795f820 commit 102d8e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions omnibus/config/software/datadog-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@
command "inv -e rtloader.install"

include_sds = ""
if linux_target? && !heroku_target?
if linux_target?
include_sds = "--include-sds" # we only support SDS on Linux targets for now
end
agent_bin = ""
command "inv -e agent.build --exclude-rtloader #{include_sds} --major-version #{major_version_arg} --rebuild --no-development --install-path=#{install_dir} --embedded-path=#{install_dir}/embedded --flavor #{flavor_arg}", env: env

if heroku_target?
agent_bin = "--agent-bin=bin/agent/core-agent"
command "inv -e agent.build --exclude-rtloader --major-version #{major_version_arg} --rebuild --no-development --install-path=#{install_dir} --embedded-path=#{install_dir}/embedded --flavor #{flavor_arg} --agent-bin=bin/agent/core-agent", env: env
end
command "inv -e agent.build --exclude-rtloader #{include_sds} --major-version #{major_version_arg} --rebuild --no-development --install-path=#{install_dir} --embedded-path=#{install_dir}/embedded --flavor #{flavor_arg} #{agent_bin}", env: env
end

if osx_target?
Expand Down

0 comments on commit 102d8e4

Please sign in to comment.