From b0784b7bfbe0b2c9a59afc1248ed3cb4b6652e85 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 14 Feb 2025 14:31:37 -0500 Subject: [PATCH] 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 Reviewed-by: Cherry Mui Auto-Submit: Dmitri Shuralyov Reviewed-by: Roland Shoemaker LUCI-TryBot-Result: Go LUCI --- x509roots/fallback/bundle.go | 2 -- x509roots/fallback/fallback.go | 2 -- x509roots/gen_fallback_bundle.go | 2 -- 3 files changed, 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"