dummy.go 794 B

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