btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.11k stars 2.32k forks source link

Unable to "go get" chainhash #1959

Closed visualbasic6 closed 1 year ago

visualbasic6 commented 1 year ago
root@1999:~# go get github.com/btcsuite/btcutil/chaincfg/chainhash
go: module github.com/btcsuite/btcutil@upgrade found (v1.0.2), but does not contain package github.com/btcsuite/btcutil/chaincfg/chainhash
guggero commented 1 year ago

The btcutil project was moved into btcsuite/btcd to simplify things around dependencies somewhat. And the chaincfg/chainhash module was moved to github.com/btcsuite/btcd/chaincfg/chainhash. So you need to pull in the module with go get github.com/btcsuite/btcd/chaincfg/chainhash. Maybe you also need to specify a version for that to work, I'd suggest to use v1.0.2.