Page MenuHomeFreeBSD

go.mk: Add -trimpath to GO_BUILDFLAGS
ClosedPublic

Authored by skozlov on May 17 2021, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 6:14 AM
Unknown Object (File)
Fri, Apr 26, 6:14 AM
Unknown Object (File)
Fri, Apr 26, 6:14 AM
Unknown Object (File)
Thu, Apr 25, 10:16 PM
Unknown Object (File)
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
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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 39261
Build 36150: arc lint + arc unit

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.