From f4827240dbd29d0c1c308b07c3406f600d5ef82b Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 8 Apr 2020 12:16:38 -0400 Subject: [PATCH] crypto/x509: tidy darwin/arm64 build tags The cgo build tag is not necessary for root_darwin_arm64.go. We can't build for darwin/arm64 without cgo, and even if we did 1) this code would work fine 2) the no-cgo code that shells out to /usr/bin/security would not work. (Suggested by Filippo.) Change-Id: I98cac2ea96ec5ac1ae60b7e32d195d5e86e2bd66 Reviewed-on: https://go-review.googlesource.com/c/go/+/227583 Reviewed-by: Filippo Valsorda --- src/crypto/x509/root_darwin_arm64.go | 2 -- src/crypto/x509/root_darwin_arm_gen.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/crypto/x509/root_darwin_arm64.go b/src/crypto/x509/root_darwin_arm64.go index 67615fd9f2..bfbfee1901 100644 --- a/src/crypto/x509/root_darwin_arm64.go +++ b/src/crypto/x509/root_darwin_arm64.go @@ -4,8 +4,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build cgo - package x509 func loadSystemRoots() (*CertPool, error) { diff --git a/src/crypto/x509/root_darwin_arm_gen.go b/src/crypto/x509/root_darwin_arm_gen.go index 5bb0bd22d1..0bd480b45d 100644 --- a/src/crypto/x509/root_darwin_arm_gen.go +++ b/src/crypto/x509/root_darwin_arm_gen.go @@ -172,8 +172,6 @@ const header = ` // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build cgo - package x509 func loadSystemRoots() (*CertPool, error) { -- 2.50.0