Commit ecc10ab
authored
chore(envd): minimize binary size with build-flag tweaks (#2664)
Adds `-trimpath`, `-buildvcs=false`, `-buildid=` and `-s -w` to the prod
`envd` build.
Effect: drops debug paths, VCS metadata, and the linker build ID from
the binary. No runtime cost (Go's pclntab is untouched, so
panics/pprof/stack traces still resolve names + lines), smaller mmap'd
footprint, and reproducible builds across machines. `build-debug` is
intentionally unaffected.1 parent 9481380 commit ecc10ab
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments