Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161050240
D24122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24122.diff
View Options
Index: head/lang/go/Makefile
===================================================================
--- head/lang/go/Makefile
+++ head/lang/go/Makefile
@@ -3,6 +3,7 @@
PORTNAME= go
PORTVERSION= 1.14.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= https://golang.org/dl/ \
Index: head/lang/go/files/patch-src_cmd_go_internal_modload_init.go
===================================================================
--- head/lang/go/files/patch-src_cmd_go_internal_modload_init.go
+++ head/lang/go/files/patch-src_cmd_go_internal_modload_init.go
@@ -0,0 +1,12 @@
+Upstream PR: https://github.com/golang/go/issues/37948
+--- src/cmd/go/internal/modload/init.go.orig 2020-02-25 18:32:50 UTC
++++ src/cmd/go/internal/modload/init.go
+@@ -562,7 +562,7 @@ func checkVendorConsistency() {
+ readVendorList()
+
+ pre114 := false
+- if modFile.Go == nil || semver.Compare("v"+modFile.Go.Version, "v1.14") < 0 {
++ if modFile.Go == nil || semver.Compare("v"+modFile.Go.Version, "v1.14") < 0 || (os.Getenv("GO_NO_VENDOR_CHECKS") == "1" && len(vendorMeta) == 0) {
+ // Go versions before 1.14 did not include enough information in
+ // vendor/modules.txt to check for consistency.
+ // If we know that we're on an earlier version, relax the consistency check.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 1, 3:39 AM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34535676
Default Alt Text
D24122.diff (1 KB)
Attached To
Mode
D24122: lang/go: relax module consistency checks if vendor/modules.txt is missing
Attached
Detach File
Event Timeline
Log In to Comment