Changeset View
Changeset View
Standalone View
Standalone View
lang/go-devel/files/patch-src_cmd_go_internal_modload_init.go
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
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. |