Skip to content

Commit

Permalink
Go 1.13 is released; use -trimpath
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Sep 3, 2019
1 parent 3e69087 commit 58fdecb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func build(tool, ldflags, goos, arch string) {
}
out := filepath.Join("bin", goos+"-"+arch, exe)
log.Printf("build: %s", out)
// TODO: add -trimpath with Go 1.13
gocmd(goos, arch, "build", "-tags", tags, "-o", out, "-ldflags", ldflags, tool)
gocmd(goos, arch, "build", "-trimpath", "-tags", tags, "-o", out, "-ldflags", ldflags, tool)
}

func gocmd(goos, arch string, args ...string) {
Expand Down

0 comments on commit 58fdecb

Please sign in to comment.