NokiaTube | New address | Mode Phone | On high quality
Skip to content

buildGoModule: drop -w from default ldflags - #640

Merged
figsoda merged 1 commit into
nix-community:mainfrom
katexochen:buildGoModule-drop-w
Dec 29, 2025
Merged

figsoda merged 1 commit into
nix-community:mainfrom
katexochen:buildGoModule-drop-w

Conversation

@katexochen

Copy link
Copy Markdown
Member

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

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

Signed-off-by: Paul Meyer <[email protected]>

@undefined-landmark undefined-landmark left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eclairevoyant

Copy link
Copy Markdown
Contributor

@katexochen

Copy link
Copy Markdown
Member Author

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 NixOS/nixpkgs#346380.

@figsoda figsoda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@figsoda
figsoda merged commit 4ec01bc into nix-community:main Dec 29, 2025
@katexochen
katexochen deleted the buildGoModule-drop-w branch December 30, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants