diff --git a/build.go b/build.go index 36a848e92..49f229827 100644 --- a/build.go +++ b/build.go @@ -465,7 +465,7 @@ func install(target target, tags []string) { defer shouldCleanupSyso(sysoPath) } - args := []string{"install", "-v"} + args := []string{"install", "-v", "-trimpath"} args = appendParameters(args, tags, target.buildPkgs...) runPrint(goCmd, args...) } @@ -493,7 +493,7 @@ func build(target target, tags []string) { defer shouldCleanupSyso(sysoPath) } - args := []string{"build", "-v"} + args := []string{"build", "-v", "-trimpath"} args = appendParameters(args, tags, target.buildPkgs...) runPrint(goCmd, args...) }