Open kolaente opened 5 years ago
I'm seeing this as well....
me too ...
Looks like this stackoverflow question pretty much sums the problem up. The problem for me here is I can't update any of my dependencies since go will complain about github.com/stretchr/testify
and stop everything.
It looks like go is expecting the package in v1
in a path like github.com/stretchr/testify/v1
and not github.com/stretchr/testify.v1
or so. Which is weired, since the article on go modules states modules should only do this starting at v2
+, not v1
or below.
Hi, I tried to install testify using
go get github.com/stretchr/testify
inside a library which usesgo mod
. This works fine, testify is added to thego.mod
andgo.sum
files. But, an entry containinggopkg.in/check.v1
is added to thego.sum
file. This also happens when I delete thego.mod
andgo.sum
files and start again (go mod init
and so on).However, when I try to reference this project in another one (a project which uses
go mod
, usinggo get -u ...
, it fails with the following error:The library I try to use in my own project is xormigrate.
I don't understand why there is
gopkg.in/check.v1
while there is no reference anywhere to it.This could also be an issue with the way go modules work.