Skip to content

macros: enable trimpath for Go builds#333

Merged
vigh-m merged 1 commit intobottlerocket-os:developfrom
bcressey:go-trimpath
Feb 27, 2026
Merged

macros: enable trimpath for Go builds#333
vigh-m merged 1 commit intobottlerocket-os:developfrom
bcressey:go-trimpath

Conversation

@bcressey
Copy link
Contributor

Issue number:
N/A

Description of changes:
-trimpath removes absolute directory names from the file paths in the final binaries, for a modest space reduction.

Testing done:
Built downstream kits and variants.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

`-trimpath` removes absolute directory names from the file paths in
the final binaries, for a modest space reduction.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
@vigh-m vigh-m merged commit fd35e91 into bottlerocket-os:develop Feb 27, 2026
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.

5 participants