go-ethereum/crypto/secp256k1/dummy.go
github-actions[bot] 0b56af5a01
[AUTO] rename Go module + update internal import paths
Workflow: c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc on branch main
2024-10-17 01:49:47 +00:00

21 lines
796 B
Go

//go:build dummy
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the crypto/secp256k1/libsecp256k1/include/secp256k1.h file to be vendored.
//
// This Go file imports the c directory where there is another dummy.go file which
// is the second part of this workaround.
//
// These two files combined make it so `go mod vendor` behaves correctly.
//
// See this issue for reference: https://github.com/golang/go/issues/26366
package secp256k1
import (
_ "github.com/ava-labs/libevm/crypto/secp256k1/libsecp256k1/include"
_ "github.com/ava-labs/libevm/crypto/secp256k1/libsecp256k1/src"
_ "github.com/ava-labs/libevm/crypto/secp256k1/libsecp256k1/src/modules/recovery"
)