Page MenuHomeFreeBSD Add -trimpath to GO_BUILDFLAGS

Authored by skozlov on May 17 2021, 9:52 PM.
Referenced Files
Unknown Object (File)
Mon, Sep 25, 9:11 PM
Unknown Object (File)
Sat, Sep 2, 8:55 PM
Unknown Object (File)
Aug 14 2023, 3:31 AM
Unknown Object (File)
Aug 14 2023, 3:30 AM
Unknown Object (File)
Aug 14 2023, 3:28 AM
Unknown Object (File)
Aug 14 2023, 3:19 AM
Unknown Object (File)
Jun 7 2023, 9:37 PM
Unknown Object (File)
Apr 21 2023, 5:06 AM



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

R11 FreeBSD ports repository
Lint Not Applicable
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.