Skip to content
Snippets Groups Projects
Commit 41e9c909 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'fix-node-exporter-build' into 'master'

Fix node-exporter build to not use unwanted env variables

See merge request gitlab-org/omnibus-gitlab!2221
parents 76f9ac05 be43cfbb
No related merge requests found
......@@ -28,11 +28,9 @@
relative_path 'src/github.com/prometheus/node_exporter'
build do
env = with_standard_compiler_flags(with_embedded_path)
env['GOPATH'] = "#{Omnibus::Config.source_dir}/node-exporter"
exporter_source_dir = "#{Omnibus::Config.source_dir}/node-exporter"
cwd = "#{exporter_source_dir}/src/github.com/prometheus/node_exporter"
command 'go build', env: env, cwd: cwd
env = {
'GOPATH' => "#{Omnibus::Config.source_dir}/node-exporter",
}
command 'go build', env: env
copy 'node_exporter', "#{install_dir}/embedded/bin/"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment