From a9f73146a5366534a44f7ed3bf2875c386ed1eb0 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Dec 05 2014 22:48:02 +0000 Subject: fix gopath usage --- diff --git a/cadvisor.spec b/cadvisor.spec index e0465d4..71e7847 100644 --- a/cadvisor.spec +++ b/cadvisor.spec @@ -5,7 +5,6 @@ %global commit 1e986029072ff511b0f069490d51dea35a50930e %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} -%global gopath %{_datadir}/gocode %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} @@ -142,7 +141,7 @@ pushd _build mkdir -p src/github.com/google ln -s $(dirs +1 -l) src/github.com/google/cadvisor popd -export GOPATH=$(pwd)/_build:%{buildroot}%{gopath}:%{gopath} +export GOPATH=$(pwd)/_build:%{gopath} go build --ldflags '-extldflags "-static"' github.com/google/cadvisor