Skip to content

Instantly share code, notes, and snippets.

@osdrv
Created February 7, 2019 13:48
Show Gist options
  • Save osdrv/e98a353284b723815131eb6804fbb33e to your computer and use it in GitHub Desktop.
Save osdrv/e98a353284b723815131eb6804fbb33e to your computer and use it in GitHub Desktop.
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -686,9 +686,10 @@ kube::golang::build_binaries() {
host_platform=$(kube::golang::host_platform)
local goflags goldflags goasmflags gogcflags
- goldflags="${GOLDFLAGS:-} -s -w $(kube::version::ldflags)"
+ goldflags="${GOLDFLAGS:-} $(kube::version::ldflags)"
goasmflags="-trimpath=${KUBE_ROOT}"
- gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"
+ gogcflags="${GOGCFLAGS:-}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment