diff --git a/Makefile b/Makefile index dfcbf6323..8bf73f831 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ export GO111MODULE=on unexport GOPATH export LDFLAGS := -extldflags '$(LDFLAGS)' -export GCFLAGS := all=-trimpath '$(PWD)' -export ASMFLAGS := all=-trimpath '$(PWD)' +export GCFLAGS := +export ASMFLAGS := MIN_COVERAGE = 90.2 diff --git a/script/build b/script/build index 058a1874f..9ef27ee26 100755 --- a/script/build +++ b/script/build @@ -17,6 +17,7 @@ build_hub() { -ldflags "-X github.com/github/hub/v2/version.Version=`./script/version` $LDFLAGS" \ -gcflags "$GCFLAGS" \ -asmflags "$ASMFLAGS" \ + -trimpath \ -o "$1" }