Skip to content

Commit

Permalink
update nightly to trace-agent master (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbbr authored and truthbk committed Mar 5, 2018
1 parent 668a8ea commit 5207437
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions omnibus/config/software/datadog-trace-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,36 @@
gopath = Pathname.new(project_dir) + '../../../..'
if windows?
env = {
'GOPATH' => gopath.to_path,
'PATH' => "#{gopath.to_path}/bin:#{ENV['PATH']}",
'WINDRES' => 'true',
# Trace agent uses GNU make to build. Some of the input to gnu make
# needs the path with `\` as separators, some needs `/`. Provide both,
# and let the makefile sort it out (ugh)

# also on windows don't modify the path. Modifying the path here mixes
# `/` with `\` in the PATH variable, which confuses the make (and sub-processes)
# below. When properly configured the path on the windows box is sufficient.
'GOPATH' => "#{windows_safe_path(gopath.to_path)}",
}
else
env = {
'GOPATH' => gopath.to_path,
'PATH' => "#{gopath.to_path}/bin:#{ENV['PATH']}",
'GOPATH' => gopath.to_path,
'PATH' => "#{gopath.to_path}/bin:#{ENV['PATH']}",
}
end

command "go get github.com/Masterminds/glide", :env => env
command "glide install", :env => env

block do
# defer compilation step in a block to allow getting the project's build version, which is populated
# only once the software that the project takes its version from (i.e. `datadog-agent`) has finished building
env['TRACE_AGENT_VERSION'] = project.build_version.gsub(/[^0-9\.]/, '') # used by gorake.rb in the trace-agent, only keep digits and dots
command "rake build", :env => env

# build trace-agent
if windows?
command "make windows", :env => env
end
command "make install", :env => env

# copy binary
if windows?
copy trace_agent_binary, "#{install_dir}/bin/agent"
copy "#{gopath.to_path}/bin/#{trace_agent_binary}", "#{install_dir}/bin/agent"
else
copy trace_agent_binary, "#{install_dir}/embedded/bin"
end
Expand Down
2 changes: 1 addition & 1 deletion release.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"nightly": {
"INTEGRATIONS_CORE_VERSION": "master",
"TRACE_AGENT_VERSION": "6.0.0-rc.2",
"TRACE_AGENT_VERSION": "master",
"PROCESS_AGENT_VERSION": "master",
"JMXFETCH_VERSION": "0.18.2",
"JMXFETCH_HASH": "ffbfc54929cbfc8e66214e01c1a0dd2509b73cdca500a72632718726215d5917"
Expand Down

0 comments on commit 5207437

Please sign in to comment.