Skip to content

Commit

Permalink
Add -trimpath to builds for cleaner embedded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Dec 21, 2023
1 parent 2dada3b commit 056c5dc
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 056c5dc

Please sign in to comment.