aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2025-02-14 14:31:37 -0500
committerGopher Robot <gobot@golang.org>2025-02-21 09:26:01 -0800
commitb0784b7bfbe0b2c9a59afc1248ed3cb4b6652e85 (patch)
tree9769d8ac24378418f83d3ba86b0a6091e394533a
parent911360c8a4f464342b9fe7c23632be57fca87b20 (diff)
downloadgo-x-crypto-b0784b7bfbe0b2c9a59afc1248ed3cb4b6652e85.tar.xz
x509roots/fallback: drop obsolete build constraint
Back when Go 1.20 and 1.19 were supported, the go1.20 build constraint was there to establish 1.20 as the minimum for the package, because it requires an API that was added only in Go 1.20 and there was no way to make it work with 1.19's APIs. By now only Go 1.24 and 1.23 are supported, and the minimum is set via the go directive in go.mod. For golang/go#57792. Change-Id: Ie4d37d34993374cdd380667930ee667af97eeccb Reviewed-on: https://go-review.googlesource.com/c/crypto/+/649716 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
-rw-r--r--x509roots/fallback/bundle.go2
-rw-r--r--x509roots/fallback/fallback.go2
-rw-r--r--x509roots/gen_fallback_bundle.go2
3 files changed, 0 insertions, 6 deletions
diff --git a/x509roots/fallback/bundle.go b/x509roots/fallback/bundle.go
index d6653ac..89d97ba 100644
--- a/x509roots/fallback/bundle.go
+++ b/x509roots/fallback/bundle.go
@@ -1,7 +1,5 @@
// Code generated by gen_fallback_bundle.go; DO NOT EDIT.
-//go:build go1.20
-
package fallback
import "crypto/x509"
diff --git a/x509roots/fallback/fallback.go b/x509roots/fallback/fallback.go
index 3141359..42717e1 100644
--- a/x509roots/fallback/fallback.go
+++ b/x509roots/fallback/fallback.go
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build go1.20
-
// Package fallback embeds a set of fallback X.509 trusted roots in the
// application by automatically invoking [x509.SetFallbackRoots]. This allows
// the application to work correctly even if the operating system does not
diff --git a/x509roots/gen_fallback_bundle.go b/x509roots/gen_fallback_bundle.go
index ffea49b..246f60c 100644
--- a/x509roots/gen_fallback_bundle.go
+++ b/x509roots/gen_fallback_bundle.go
@@ -27,8 +27,6 @@ import (
const tmpl = `// Code generated by gen_fallback_bundle.go; DO NOT EDIT.
-//go:build go1.20
-
package fallback
import "crypto/x509"