Skip to content

Commit

Permalink
fix: crypto/keys/secp246k1/*: add +build cgo guard to avoid failure w…
Browse files Browse the repository at this point in the history
…ith 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
  • Loading branch information
odeke-em authored Sep 13, 2022
1 parent b96bed5 commit 641ab20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/keys/secp256k1/internal/secp256k1/secp256_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 641ab20

Please sign in to comment.