Fix for go 1.4 build compat

This commit is contained in:
Jimmi Dyson 2015-11-23 11:30:47 +00:00
parent cba634326e
commit 990ee0d714

View File

@ -29,12 +29,12 @@ if [ "$(go env GOOS)" = "windows" ]; then
fi
ldflags="
-X ${repo_path}/version.Version=${version}
-X ${repo_path}/version.Revision=${revision}
-X ${repo_path}/version.Branch=${branch}
-X ${repo_path}/version.BuildUser=${USER}@${host}
-X ${repo_path}/version.BuildDate=${build_date}
-X ${repo_path}/version.GoVersion=${go_version}"
-X ${repo_path}/version.Version ${version}
-X ${repo_path}/version.Revision ${revision}
-X ${repo_path}/version.Branch ${branch}
-X ${repo_path}/version.BuildUser ${USER}@${host}
-X ${repo_path}/version.BuildDate ${build_date}
-X ${repo_path}/version.GoVersion ${go_version}"
echo " > cadvisor"
godep go build -ldflags "${ldflags}" -o cadvisor${ext} ${repo_path}