skl-go icon indicating copy to clipboard operation
skl-go copied to clipboard

Module path should be "github.com/mikezss/skl-go", not "skl-go"

Open KateGo520 opened this issue 4 years ago • 1 comments

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:

  1. 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 (
	…
) 
  1. Warning the users not to use the module, get "github.com/mikezss/skl-go" in GOPATH mode.

KateGo520 avatar Jul 29 '20 03:07 KateGo520

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

KateGo520 avatar Jul 29 '20 03:07 KateGo520