From 633acaeb3615021d356d7e0c255f69a9e8f00bbf Mon Sep 17 00:00:00 2001 From: Songmu Date: Mon, 5 Apr 2021 20:28:16 +0900 Subject: [PATCH] make -trimpath true by default --- cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.go b/cli.go index 1f7c78d..7e578f8 100644 --- a/cli.go +++ b/cli.go @@ -58,7 +58,7 @@ Options: fs.BoolVar(&gx.static, "static", false, "build statically linked binary") fs.BoolVar(&gx.work, "work", false, "[for debug] print the name of the temporary work directory and do not delete it when exiting.") - fs.BoolVar(&gx.trimpath, "trimpath", false, "remove all file system paths from the resulting executable. requires Go 1.13 or later.") + fs.BoolVar(&gx.trimpath, "trimpath", true, "remove all file system paths from the resulting executable. requires Go 1.13 or later.") err := fs.Parse(args) if err != nil {