Starting from go1.14, go verifes that vendor/modules.txt matches the requirements and replacements listed in the main module go.mod file, and it is a hard failure if vendor/modules.txt is missing. Relax module consistency checks and switch back to pre go1.14 behaviour if vendor/modules.txt is missing regardless of go version requirement in go.mod. Bugzilla PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244783 Upstream PR: https://github.com/golang/go/issues/37948
Details
Details
- Reviewers
jlaffaye tobik mikael yuri swills - Group Reviewers
O5: Ports Framework (Owns No Changed Paths) portmgr - Commits
- rP530489: MFH: r530388
rP530488: MFH: r530387
rP530388: Mk/Uses/go.mk: Set GO_NO_VENDOR_CHECKS=1
rP530387: lang/go: relax module consistency checks if vendor/modules.txt is missing
poudriere testport: OK
Diff Detail
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 30010 Build 27823: arc lint + arc unit
Event Timeline
Comment Actions
It doesn't look like https://github.com/golang/go/issues/37948 is going to be accepted by the upstream, any objections to keeping this as a local lang/go patch?
Comment Actions
Enable relaxed checks only when GO_NO_VENDOR_CHECKS=1 is set in the environment
(by go.mk) - this should limit custom behaviour to port builds.
Comment Actions
Just, checking in, where are we at with this? I have some port updates blocking on this.