Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

[Bug] Import Issues: ambiguous import: found package github.com/btcsuite/btcd/chaincfg/chainhash in multiple modules #483

Closed
andorsk opened this issue May 25, 2023 · 1 comment · Fixed by #531
Assignees
Labels
bug Something isn't working

Comments

@andorsk
Copy link
Contributor

andorsk commented May 25, 2023

Describe the bug

Run go mod tidy

github.com/benri-io/**/**** imports
        github.com/tbd54566975/ssi-service/pkg/server imports
    github.com/tbd54566975/ssi-service/pkg/service/did imports
    github.com/TBD54566975/ssi-sdk/did/ion 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/akmb2/go/pkg/mod/github.com/btcsuite/btcd@v0.22.0-beta/chaincfg/chainhash)
    github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 (/Users/akmb2/go/pkg/mod/github.com/btcsuite/btcd/chaincfg/chainhash@v1.0.2)

Temporary fix:
go get -d github.com/btcsuite/btcd/chaincfg/chainhash@v1.0.2

Expected behavior
No import issue

Supporting Material
btcsuite/btcd#1937

Environment (please complete the following information):

  • OS: macOS

Additional context
Add any other context about the problem here.

@andorsk andorsk added the bug Something isn't working label May 25, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in SSI May 25, 2023
@andorsk andorsk changed the title [Bug] Import Issues: [Bug] Import Issues: ambiguous import: found package github.com/btcsuite/btcd/chaincfg/chainhash in multiple modules May 25, 2023
@andorsk
Copy link
Contributor Author

andorsk commented May 25, 2023

golang/go#60352

@decentralgabe decentralgabe moved this from 🆕 New to 📋 Backlog in SSI May 25, 2023
@decentralgabe decentralgabe added this to the Milestone v0.0 milestone May 25, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in SSI Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants