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
Unknown Object (File)
Sat, Aug 8, 4:58 PM
Unknown Object (File)
Sat, Aug 8, 2:23 PM
Unknown Object (File)
Mon, Jul 27, 7:04 AM
Unknown Object (File)
Mon, Jul 20, 2:55 AM
Unknown Object (File)
Tue, Jul 14, 11:02 PM
Unknown Object (File)
Jul 11 2026, 6:45 PM
Unknown Object (File)
Jul 11 2026, 11:22 AM
Unknown Object (File)
Jul 1 2026, 9:50 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
Lint Not Applicable
Unit
Tests Not Applicable

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