Page MenuHomeFreeBSD

go.mk: Add -trimpath to GO_BUILDFLAGS
ClosedPublic

Authored by skozlov on May 17 2021, 9:52 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.