Error using gock v.1.0.13 with go modules
triodan opened this issue · comments
Overview
gock v1.0.13 appears to depend on the parth
repository. Using normal go get -u gopkg.in/h2non/gock.v1
in a go modules environment results in the following error:
../../go/pkg/mod/gopkg.in/h2non/gock.v1@v1.0.13/matchers.go:123:13: undefined: parth.Sequent
This appears to be caused by the go modules version resolver which somehow imports perth v.1.1.3 as a transitive dependency, instead of the v.2.0.0.
Currently this can be fixed by pinning gock to version v.1.0.12 in the go.mod
file of the project using gock
.
System Information
OS version: Ubuntu 18.04
Go version: 1.11.1 linux/amd64
How to simulate
- Create a go project outside the
$GOPATH
, usinggo mod init
- Run
go get -u gopkg.in/h2non/gock.v1
to addgock
as a module dependency.
Thanks for reporting. It should be fixed in v1.0.14
.