[Go 1.11] go mod vendor failure and i don't know why,please help me save my time

Below is my command lines:

PS D:\src\github.com\lvhuat\http-service-example> go list -m all | findstr logrus
github.com/sirupsen/logrus v1.3.0
PS D:\src\github.com\lvhuat\http-service-example> go mod vendor
go: github.com/Sirupsen/logrus@v1.3.0: parsing go.mod: unexpected module path "github.com/sirupsen/logrus"
go: error loading module requirements
PS D:\src\github.com\lvhuat\http-service-example>

I have checked that all my depends in the project, and i found no code is depending on the github.com/Sirupsen/logrus(uppercase one),just github.com/sirupsen/logrus(lowercase one)

go.mod

module github.com/lvhuat/http-service-example

require (
	github.com/DeanThompson/ginpprof v0.0.0-20170218162546-8c0e31bfeaa8
	github.com/gin-gonic/gin v1.3.0
	github.com/go-sql-driver/mysql v1.4.1
	github.com/golang/protobuf v1.2.0
	github.com/gorilla/websocket v1.4.0
	github.com/jinzhu/gorm v1.9.2
	github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a // indirect
	github.com/json-iterator/go v1.1.5
	github.com/lestrrat-go/file-rotatelogs v2.2.0+incompatible
	github.com/lestrrat-go/strftime v0.0.0-20180821113735-8b31f9c59b0f // indirect
	github.com/lworkltd/kits v0.0.4
	github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
	github.com/sirupsen/logrus v1.3.0
)

But when i run go build -v,everything seems going well.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.