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

Module path should be "github.com/toorop/go-bitcoind", not "github.com/vpashka/go-bitcoind" #27

Open
KateGo520 opened this issue Jul 30, 2020 · 3 comments

Comments

@KateGo520
Copy link

Background

Module path is inconsistent with go import path.
GO111MODULE=on, as doc said, import "github.com/toorop/go-bitcoind", then get this error:

go: finding module for package github.com/toorop/go-bitcoind
go: downloading github.com/toorop/go-bitcoind v0.0.0-20191125160357-28204734ac83
go: found github.com/toorop/go-bitcoind in github.com/toorop/go-bitcoind v0.0.0-20191125160357-28204734ac83
go: test1 imports
        github.com/toorop/go-bitcoind: github.com/toorop/[email protected]: parsing go.mod:
        module declares its path as: github.com/vpashka/go-bitcoind
                but was required as: github.com/toorop/go-bitcoind 

Solution

Fix the module path:

  1. Rename the module path to "github.com/toorop/go-bitcoind": https://github.com/toorop/go-bitcoind/blob/master/go.mod#L1
module github.com/toorop/go-bitcoind
go 1.12 
  1. Warning the users not to use the module, get "github.com/toorop/go-bitcoind" in GOPATH mode.
@KateGo520
Copy link
Author

@vpashka Could you help me review this issue? Thx :p

@vpashka
Copy link
Contributor

vpashka commented Jul 30, 2020

Yes.
There is a fix here
https://github.com/toorop/go-bitcoind/pull/25/files

@KateGo520
Copy link
Author

KateGo520 commented Jul 31, 2020

@vpashka Thanks for your efforts and feedback.

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