Skip to content

Commit

Permalink
omnibus: don't build the agent twice on heroku (DataDog#31572)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette authored Nov 29, 2024
1 parent 191174d commit 33fe40a
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?
if linux_target? && !heroku_target?
include_sds = "--include-sds" # we only support SDS on Linux targets for now
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}", env: env

agent_bin = ""
if heroku_target?
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
agent_bin = "--agent-bin=bin/agent/core-agent"
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 33fe40a

Please sign in to comment.