diff options
author | Dmitri Goutnik <dmgk@FreeBSD.org> | 2023-02-02 12:09:18 +0000 |
---|---|---|
committer | Dmitri Goutnik <dmgk@FreeBSD.org> | 2023-02-02 13:47:28 +0000 |
commit | 968bde747161c25ad6335b131043dcf54b2ebf43 (patch) | |
tree | cf62e75d1036442c2287dbf3e570062f9b3b56b9 /lang/go120/files | |
parent | 91c0d1c49f9f31c2122aca54b822535f0f94c630 (diff) | |
download | ports-968bde747161c25ad6335b131043dcf54b2ebf43.tar.gz ports-968bde747161c25ad6335b131043dcf54b2ebf43.zip |
lang/go120: Add new port
Add new port for the latest Go release, version 1.20.
Release notes: https://go.dev/doc/go1.20
Diffstat (limited to 'lang/go120/files')
-rw-r--r-- | lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go new file mode 100644 index 000000000000..721bed32419f --- /dev/null +++ b/lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go @@ -0,0 +1,11 @@ +--- src/cmd/go/internal/modload/vendor.go.orig 2020-12-17 16:03:19 UTC ++++ src/cmd/go/internal/modload/vendor.go +@@ -133,7 +133,7 @@ func checkVendorConsistency() { + readVendorList() + + pre114 := false +- if semver.Compare(index.goVersionV, "v1.14") < 0 { ++ if semver.Compare(index.goVersionV, "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. |