go module: cannot find module providing package testing/mem
tgirod opened this issue · comments
In a folder with some code that works when compiled inside $GOPATH:
$ go mod init oral
go: creating new go.mod: module oral
$ go get -u ./...
go: finding github.com/rs/rest-layer/resource/testing/mem latest
go: finding github.com/rs/rest-layer/rest latest
go: finding github.com/rs/rest-layer/schema latest
go: finding github.com/rs/rest-layer/resource latest
go: finding github.com/rs/rest-layer/resource/testing latest
go: finding golang.org/x/crypto/bcrypt latest
go: finding golang.org/x/crypto latest
build oral: cannot load github.com/rs/rest-layer/resource/testing/mem: cannot find module providing package github.com/rs/rest-layer/resource/testing/mem
Is there something to modify in github.com/rs/rest-layer/resource/testing/mem to make it go modules compatible?
Sorry that there has been no response.
I am not sure what causes the issue you are seeing. You can try to ensure you are depending on the master version of rest-layer.
$ go get -u github.com/rs/rest-layer@master
I confirm that pointing to the master version solves the issue. Thank you!
As v0.2 has been released some time ago, I am closing this issue.