Skip to content

feat: adding -ldflag and -trimpath to go build #5940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

abhimanyu003
Copy link
Contributor

What this PR does / why we need it:

It will reduce the binary size of output and will also remove prefixes from recorded source file paths.

This can be particularly useful for creating reproducible builds and for privacy reasons, as it strips out paths that might contain sensitive information like usernames or directory structures.

@lc525 lc525 added the v2 label Sep 27, 2024
Copy link
Member

@lc525 lc525 left a comment

Choose a reason for hiding this comment

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

lgtm once the last -s that remained is also removed.

Thank you for this PR, it's really good to make incremental improvements like these when we notice that things can be easily improved!

@abhimanyu003 abhimanyu003 merged commit dd4c6da into SeldonIO:v2 Oct 3, 2024
3 checks passed
jtayl222 pushed a commit to jtayl222/seldon-core that referenced this pull request Jul 20, 2025
* feat: adding -ldflag and -trimpath to go build

* fix: review comments to not to add -s flag

* fix: review comment and -s flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants