mborders / artifex

Simple in-memory job queue for Golang using worker-based dispatching

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module path should be "github.com/mborders/artifex", not "github.com/borderstech/artifex"

KateGo520 opened this issue · comments

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:

  1. 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 (
	…
) 
  1. Change the doc document to use import "github.com/borderstech/artifex".

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

Sure thing, I will fix this!