Page MenuHomeFreeBSD

Mk/Uses/go.mk: Avoid pollution of Go module cache with modules downloaded by gomod-vendor
ClosedPublic

Authored by dmgk on Jan 6 2020, 11:54 PM.
Tags
None
Referenced Files
F149064955: D23063.id66429.diff
Sun, Mar 22, 2:27 AM
Unknown Object (File)
Sat, Mar 21, 8:11 PM
Unknown Object (File)
Mon, Mar 16, 2:45 AM
Unknown Object (File)
Wed, Mar 11, 9:01 AM
Unknown Object (File)
Tue, Mar 10, 7:11 AM
Unknown Object (File)
Mon, Mar 9, 8:39 PM
Unknown Object (File)
Sat, Mar 7, 5:41 PM
Unknown Object (File)
Sat, Mar 7, 5:48 AM
Subscribers

Details

Summary

Use module cache local to the WRKDIR and add the -modcacherw flag (available
in go1.14 [1, 2]) to instruct go mod vendor to leave directories
in the module cache read-write instead of making them unwritable.

[1] https://github.com/golang/go/issues/31481
[2] https://go-review.googlesource.com/c/go/+/202079/

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 28514
Build 26569: arc lint + arc unit

Event Timeline

dmgk retitled this revision from Mk/Uses/go.mk: Avoid polluting Go module cache with modules downloaded by gomod-vendor to Mk/Uses/go.mk: Avoid pollution of Go module cache with modules downloaded by gomod-vendor.Jan 6 2020, 11:59 PM

Awesome, looks great, thanks!

This revision is now accepted and ready to land.Jan 9 2020, 1:10 PM