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

[DVT-149] Resolve go mod tidy bug #8

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Conversation

minhd-vu
Copy link
Contributor

@minhd-vu minhd-vu commented Nov 7, 2022

Error:

➜  polygon-cli git:(minhd-vu/fixit-go-mod-tidy) go mod tidy
github.com/maticnetwork/polygon-cli/cmd imports
	github.com/ethereum/go-ethereum/crypto imports
	github.com/btcsuite/btcd/btcec/v2/ecdsa tested by
	github.com/btcsuite/btcd/btcec/v2/ecdsa.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/mvu/go/pkg/mod/github.com/btcsuite/btcd@v0.22.0-beta/chaincfg/chainhash)
	github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 (/Users/mvu/go/pkg/mod/github.com/btcsuite/btcd/chaincfg/chainhash@v1.0.1)

Solution:

➜  polygon-cli git:(minhd-vu/fixit-go-mod-tidy) go get github.com/btcsuite/btcd@latest
go: upgraded github.com/btcsuite/btcd v0.22.0-beta => v0.23.3
go: added github.com/btcsuite/btcd/btcutil v1.1.0
go: added github.com/decred/dcrd/lru v1.0.0
go: upgraded github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89 => v1.4.0
➜  polygon-cli git:(minhd-vu/fixit-go-mod-tidy) ✗ go mod tidy
➜  polygon-cli git:(minhd-vu/fixit-go-mod-tidy) ✗

References:

@linear
Copy link

linear bot commented Nov 7, 2022

Copy link
Member

@praetoriansentry praetoriansentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@minhd-vu minhd-vu merged commit ea250f0 into main Nov 7, 2022
@minhd-vu minhd-vu deleted the minhd-vu/fixit-go-mod-tidy branch November 7, 2022 22:37
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

Successfully merging this pull request may close these issues.

2 participants