Skip to content
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

go get github.com/btcsuite/btcd/btcec is failing in docker file #1803

Closed
adnanmirza11 opened this issue Feb 4, 2022 · 4 comments
Closed

Comments

@adnanmirza11
Copy link

adnanmirza11 commented Feb 4, 2022

go get github.com/btcsuite/btcd/btcec is failing in docker file and returning

github.com/decred/dcrd/dcrec/secp256k1

/root/go/src/github.com/decred/dcrd/dcrec/secp256k1/loadprecomputed.go:53:22: undefined: io.ReadAll
The command '/bin/sh -c go get github.com/btcsuite/btcd/btcec' returned a non-zero code: 2
2022-02-04T12:57:19.612779747Z stdout P

image

@adnanmirza11 adnanmirza11 changed the title go get -u github.com/btcsuite/btcd/btcec is failing in docker file go get github.com/btcsuite/btcd/btcec is failing in docker file Feb 4, 2022
@Roasbeef
Copy link
Member

Roasbeef commented Feb 4, 2022

Which Go version are you using? You'll need to be using at least Go 1.16.

@adnanmirza11
Copy link
Author

Yes, I;m using the latest. And this was working fine until the repo of btcd was updated few days ago

@Roasbeef
Copy link
Member

Roasbeef commented Feb 5, 2022

We're working on cleaning up some of the lingering tags in this PR. Rather than always attempt to fetch the latest version of the module, you should be attempting to fetch a particular commit/tag instead. This way you can ensure you're fetching the same version, making your docker container more deterministic.

You can fetch the last tagged release using: go get -v github.com/btcsuite/btcd/btcec@v0.22.0-beta.

FWIW, I'm unable to reproduce that error, instead I get an error due to one of the bogus tags that were pushed.

@adnanmirza11
Copy link
Author

I will try this way, let's see

@Roasbeef Roasbeef closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants