skl-go
skl-go copied to clipboard
Module path should be "github.com/mikezss/skl-go", not "skl-go"
Background
Module path is inconsistent with go import path.
GO111MODULE=on, run go get github.com/mikezss/skl-go
:
go: downloading github.com/mikezss/skl-go v0.0.0-20200108061401-2a0036e998c4
go: github.com/mikezss/skl-go upgrade => v0.0.0-20200108061401-2a0036e998c4
go get: github.com/mikezss/[email protected]: parsing go.mod:
module declares its path as: skl-go
but was required as: github.com/mikezss/skl-go
Solution
Fix the module path:
- Rename the module path to "github.com/mikezss/skl-go": https://github.com/mikezss/skl-go/blob/master/go.mod#L1
module github.com/mikezss/skl-go
go 1.13
require (
…
)
- Warning the users not to use the module, get "github.com/mikezss/skl-go" in GOPATH mode.
@mikezss Could you help me review this issue? Thx :p