We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75195c3 commit 61ee971Copy full SHA for 61ee971
build/build.sh
@@ -41,9 +41,10 @@ ldflags="
41
-X ${repo_path}/version.Branch${ldseparator}${branch}
42
-X ${repo_path}/version.BuildUser${ldseparator}${USER}@${host}
43
-X ${repo_path}/version.BuildDate${ldseparator}${build_date}
44
- -X ${repo_path}/version.GoVersion${ldseparator}${go_version}"
+ -X ${repo_path}/version.GoVersion${ldseparator}${go_version}
45
+ -extldflags \"-static\""
46
47
echo " > cadvisor"
-godep go build -ldflags "${ldflags}" -o cadvisor${ext} ${repo_path}
48
+godep go build --ldflags "${ldflags}" -o cadvisor${ext} ${repo_path}
49
50
exit 0
0 commit comments