nix-init icon indicating copy to clipboard operation
nix-init copied to clipboard

buildGoModule: drop -w from default ldflags

Open katexochen opened this issue 5 months ago • 2 comments

-w is implied by -s, so we can drop it here.

katexochen avatar Jul 22 '25 09:07 katexochen

Ideally we should drop both? See https://discourse.nixos.org/t/why-do-so-many-go-packages-use-s-w-in-their-ldflags-it-breaks-dontfixup-dontstrip/36843.

eclairevoyant avatar Sep 22 '25 20:09 eclairevoyant

Ideally we should drop both? See https://discourse.nixos.org/t/why-do-so-many-go-packages-use-s-w-in-their-ldflags-it-breaks-dontfixup-dontstrip/36843.

That's another topic and might require additional steps, see https://github.com/NixOS/nixpkgs/issues/346380.

katexochen avatar Oct 08 '25 11:10 katexochen