feat: add -s -w build flags to reduce binary size

Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
Brian McGee 2024-02-14 15:10:20 +00:00
parent b109358490
commit cb9564c7ef
Signed by: brianmcgee
GPG Key ID: D49016E76AD1E8C0

View File

@ -22,6 +22,8 @@
modules = ../gomod2nix.toml;
ldflags = [
"-s"
"-w"
"-X 'build.Name=${pname}'"
"-X 'build.Version=${version}'"
];