dummy.go 811 B

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