Skip to content

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

@KateGo520

Description

@KateGo520

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/go-bitcoind@v0.0.0-20191125160357-28204734ac83: 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions