-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CGO_ENABLED=0 signature_cgo.go:27:2 build constraints exclude all Go files #17452
Comments
That library is not correct. I know of at least @whyrusleeping who found some issues in the signature verification. It has not been battle tested, nor probably audited. We use it for some tests, but you should not rely on it. Please keep the C version of |
Thanks @karalabe . But when i use I encounter issues like:
But
That is why i am looking for a nocgo solution. |
Is there any known solution to this problem? Can't compile my code with ethereum client ;/ |
Any updates on this? |
Any solution to this ? 'vendor/github.com/ethereum/go-ethereum/crypto/signature_cgo.go:27:2: build constraints exclude all Go files in /go/src/app/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1 |
You disabled CGO |
@karalabe thanks for the response I did that because my build failed with the following error app/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1 I am unable to understand what is causing this, Can you please advise a work around ? Thanks |
When you vendored in geth, you probably didn't explicitly pull in the header files. Most go vendoring tools are incapable of handling folder without Go sources in them. We also have a special rule on our own repo to pull in all subfolders of secp256k1. |
@karalabe your actually right, i just did a fix to my build flow, a nice tool that came in handy https://github.com/nomad-software/vend Thank you so much for such a swift response on this issue. Cheers! |
We use govendor. It was the best we could find until now. |
Sadly, i got hooked on to dep tool for last 3 months, switched from glide eventually, definitely going to take a look at govendor. Thanks @karalabe 👍 |
@karalabe |
System information
Geth version:
1.8.13
Golang version:
1.10.3
OS & Version: Windows64
Commit hash : (if
develop
)Expected behaviour
Build without cgo
Actual behaviour
....\vendor\github.com\ethereum\go-ethereum\crypto\signature_cgo.go:27:2: build constraints exclude all Go files in D:***\src\prjname\vendor\github.com\ethereum\go-ethereum\crypto\secp256k1
Steps to reproduce the behaviour
set CGO_ENABLED=0
More Info
Since #3680 merged (crypto: add btcec fallback for sign/recover without cgo)
@fjl
The text was updated successfully, but these errors were encountered: