1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

lang/go: Update to 1.16

Changes:	https://golang.org/doc/go1.16
This commit is contained in:
Dmitri Goutnik 2021-02-17 11:44:50 +00:00
parent 816b7ede91
commit 4388542076
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=565496
3 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= go
PORTVERSION?= 1.15.8
PORTVERSION?= 1.16
PORTREVISION?= 0
PORTEPOCH?= 1
CATEGORIES= lang
@ -46,11 +46,11 @@ EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
WRKSRC= ${WRKDIR}/go
.endif
OPTIONS_DEFINE_i386= GO387
OPTIONS_DEFINE_i386= SOFTFLOAT
GO387_DESC= Do not generate code with SSE2 (for old x86 CPU)
SOFTFLOAT_DESC= Use soft float on non-SSE2 processors (Pentium 4 and older)
GO387_VARS= GO386=387
SOFTFLOAT_VARS= GO386=softfloat
BINARIES= go gofmt
BOOTSTRAP_TAG= go1.14

View File

@ -1,6 +1,6 @@
TIMESTAMP = 1612525048
SHA256 (go1.15.8.src.tar.gz) = 540c0ab7781084d124991321ed1458e479982de94454a98afab6acadf38497c2
SIZE (go1.15.8.src.tar.gz) = 23018628
TIMESTAMP = 1613525787
SHA256 (go1.16.src.tar.gz) = 7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a
SIZE (go1.16.src.tar.gz) = 20895394
SHA256 (go-freebsd-arm64-go1.14.tar.xz) = f8b0cf0d323e581c9e3e0d5c217847a3e0294fcc92dbac92a5b02cea9d97ad8d
SIZE (go-freebsd-arm64-go1.14.tar.xz) = 34944548
SHA256 (go-freebsd-amd64-go1.14.tar.xz) = 3b259247fb228258a4f31e283e9aa23cafd590eabce334666a9e9b2ffe47c19b

View File

@ -1,11 +1,11 @@
--- src/cmd/go/internal/modload/vendor.go.orig 2020-06-11 12:36:37 UTC
--- 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 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) {
- 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.