github.com/luckypickle/go-ethereum-vet@v1.14.2/crypto/secp256k1/dummy.go (about) 1 //go:build dummy 2 // +build dummy 3 4 // This file is part of a workaround for `go mod vendor` which won't vendor 5 // C files if there's no Go file in the same directory. 6 // This would prevent the crypto/secp256k1/libsecp256k1/include/secp256k1.h file to be vendored. 7 // 8 // This Go file imports the c directory where there is another dummy.go file which 9 // is the second part of this workaround. 10 // 11 // These two files combined make it so `go mod vendor` behaves correctly. 12 // 13 // See this issue for reference: https://github.com/golang/go/issues/26366 14 15 package secp256k1 16 17 import ( 18 _ "github.com/luckypickle/go-ethereum-vet/crypto/secp256k1/libsecp256k1/include" 19 _ "github.com/luckypickle/go-ethereum-vet/crypto/secp256k1/libsecp256k1/src" 20 _ "github.com/luckypickle/go-ethereum-vet/crypto/secp256k1/libsecp256k1/src/modules/recovery" 21 )