Page MenuHomeFreeBSD

go.mk: Add -trimpath to GO_BUILDFLAGS
ClosedPublic

Authored by skozlov on May 17 2021, 9:52 PM.
Tags
None
Referenced Files
F82013379: D30321.diff
Wed, Apr 24, 1:12 PM
Unknown Object (File)
Mar 8 2024, 12:11 AM
Unknown Object (File)
Jan 13 2024, 4:36 AM
Unknown Object (File)
Jan 12 2024, 5:59 AM
Unknown Object (File)
Dec 20 2023, 4:07 AM
Unknown Object (File)
Nov 4 2023, 10:58 PM
Unknown Object (File)
Sep 25 2023, 9:11 PM
Unknown Object (File)
Sep 2 2023, 8:55 PM
Subscribers

Details

Summary

Available starting go 1.13.

From go 1.13 release notes:

The new go build flag -trimpath removes all file system paths from the
compiled executable, to improve build reproducibility.

Test Plan

Tested on www/pydio-cells, without fix grep -U 'skozlov' cells matches, with the fix - it doesn't.
Please advise what's the best way to test on the bigger number of ports.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

LGTM, thanks for the heads up. I was planning to add this, but somehow it slipped through cracks.
I'll do some more testing and will commit shortly.

This revision was not accepted when it landed; it landed in state Needs Review.May 20 2021, 4:02 PM
This revision was automatically updated to reflect the committed changes.