Skip to content

Commit

Permalink
Merge pull request #137 from self-five/trimpath
Browse files Browse the repository at this point in the history
Add `-trimpath` to builds for cleaner embedded paths
  • Loading branch information
tianon authored Dec 21, 2023
2 parents 2dada3b + 056c5dc commit b73cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN set -eux; \
patch --strip=1 --directory=/usr/local/go --input=/tmp/go-mips.patch

# note: we cannot add "-s" here because then "govulncheck" does not work (see SECURITY.md); the ~0.2MiB increase (as of 2022-12-16, Go 1.18) is worth it
ENV BUILD_FLAGS="-v -ldflags '-d -w'"
ENV BUILD_FLAGS="-v -trimpath -ldflags '-d -w'"

RUN set -eux; \
{ \
Expand Down

0 comments on commit b73cc93

Please sign in to comment.