jondot / goweight

A tool to analyze and troubleshoot a Go binary size.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't force recompilation

kroppt opened this issue · comments

This project is most useful it seems for projects which produce large binaries and which have many dependencies. Such projects can take a long time to build.
Thus, I suggest removing the -a flag from the build command. I do not know if it provides any value, because it's been there since the first commit.

BuildCmd: []string{"go", "build", "-o", "goweight-bin-target", "-work", "-a"},

$ go help build
-a
    force rebuilding of packages that are already up-to-date.