btcsuite / btcd

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

ambiguous import: found package github.com/btcsuite/btcd/chaincfg/chainhash in multiple modules #1839

Closed shrimalmadhur closed 2 years ago

shrimalmadhur commented 2 years ago

Hello,

I am using the beta version (btcd@v0.22.0-beta) and recently I got this error while building

github.com/btcsuite/btcd/btcec tested by
github.com/btcsuite/btcd/btcec.test imports
github.com/btcsuite/btcd/chaincfg/chainhash: ambiguous import: found package github.com/btcsuite/btcd/chaincfg/chainhash in multiple modules:
github.com/btcsuite/btcd v0.22.0-beta (/Users/madhurshrimal/go/pkg/mod/github.com/btcsuite/btcd@v0.22.0-beta/chaincfg/chainhash)
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0 (/Users/madhurshrimal/go/pkg/mod/github.com/btcsuite/btcd/chaincfg/chainhash@v1.0.0)

It didn't use to come before and suddenly it popped up. Any idea how I can solve this?

qdm12 commented 2 years ago

Awesome thanks @chappjc ❤️ I really didn't spot that sneaky github.com/btcsuite/btcutil/base58 import! Sorry for hijacking the issue thread a bit.