Module path should be "github.com/mborders/artifex", not "github.com/borderstech/artifex"
KateGo520 opened this issue · comments
KateGo520 commented
Background
Module path is inconsistent with go import path.
GO111MODULE=on, as doc said, import "github.com/mborders/artifex", then get this error:
go: finding module for package github.com/mborders/artifex
go: downloading github.com/mborders/artifex v0.0.0-20191113201913-8ea03c710bd4
go: found github.com/mborders/artifex in github.com/mborders/artifex v0.0.0-20191113201913-8ea03c710bd4
go: test1 imports
github.com/mborders/artifex: github.com/mborders/artifex@v0.0.0-20191113201913-8ea03c710bd4: parsing go.mod:
module declares its path as: github.com/borderstech/artifex
but was required as: github.com/mborders/artifex
Solution
Fix the module path:
- Rename the module path to "github.com/mborders/artifex": https://github.com/mborders/artifex/blob/master/go.mod#L1
module github.com/mborders/artifex
require (
…
)
- Change the doc document to use
import "github.com/borderstech/artifex"
.
Matthew Borders commented
Sure thing, I will fix this!
Matthew Borders commented
Fixed!