Commit 1fce4e8
committed
Add trimpath Go build flag
I recently learned of the `-trimpath` flag for Go builds. It will remove build
system specific file paths from the created Go binary. This seems to be a best
practice for reproducible builds as a build from my local machine yields the
same binary as the build from Travis and any other future build infrastructure.
Add `-trimpath` to the default Go flags.1 parent 6d8f56e commit 1fce4e8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments