From 641ab204153fe8e81a60de74b0b9061d9d2d5787 Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Tue, 13 Sep 2022 16:06:44 -0700 Subject: [PATCH] fix: crypto/keys/secp246k1/*: add +build cgo guard to avoid failure with CGO_ENABLED=0 (#13267) Fixes an oversight that hadn't been considered when the build guards were added to the other files in the same directory, that this test requires linking with code that hooks into cgo. This change adds the build guard +build cgo Fixes #13266 --- crypto/keys/secp256k1/internal/secp256k1/secp256_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/keys/secp256k1/internal/secp256k1/secp256_test.go b/crypto/keys/secp256k1/internal/secp256k1/secp256_test.go index dbf61b3787..080f885640 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/secp256_test.go +++ b/crypto/keys/secp256k1/internal/secp256k1/secp256_test.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be found in // the LICENSE file. +//go:build !gofuzz && cgo +// +build !gofuzz,cgo + package secp256k1 import (