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/liu2hai/chive", not "chive" #4

Open
KateGo520 opened this issue Jul 29, 2020 · 1 comment
Open

Module path should be "github.com/liu2hai/chive", not "chive" #4

KateGo520 opened this issue Jul 29, 2020 · 1 comment

Comments

@KateGo520
Copy link

Background

Module path is inconsistent with go import path.
GO111MODULE=on, run go get github.com/liu2hai/chive:

go: downloading github.com/liu2hai/chive v0.0.0-20190817071450-4062106be942
go: github.com/liu2hai/chive upgrade => v0.0.0-20190817071450-4062106be942
go get: github.com/liu2hai/chive@v0.0.0-20190817071450-4062106be942: parsing go.mod:
        module declares its path as: chive
                but was required as: github.com/liu2hai/chive 

Solution

Fix the module path:

  1. Rename the module path to "github.com/liu2hai/chive": https://github.com/liu2hai/chive/blob/master/go.mod#L1
module github.com/liu2hai/chive
go 1.12
require (
	…
) 
  1. Warning the users not to use the module, get "github.com/liu2hai/chive" in GOPATH mode.
@KateGo520
Copy link
Author

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

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

1 participant