Closed triodan closed 5 years ago
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:
parth
go get -u gopkg.in/h2non/gock.v1
../../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.
go.mod
gock
OS version: Ubuntu 18.04 Go version: 1.11.1 linux/amd64
$GOPATH
go mod init
Thanks for reporting. It should be fixed in v1.0.14.
v1.0.14
Overview
gock v1.0.13 appears to depend on the
parth
repository. Using normalgo get -u gopkg.in/h2non/gock.v1
in a go modules environment results in the following error: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 usinggock
.System Information
OS version: Ubuntu 18.04 Go version: 1.11.1 linux/amd64
How to simulate
$GOPATH
, usinggo mod init
go get -u gopkg.in/h2non/gock.v1
to addgock
as a module dependency.