rs / rest-layer

REST Layer, Go (golang) REST API framework
http://rest-layer.io
MIT License
1.26k stars 114 forks source link

go module: cannot find module providing package testing/mem #253

Closed tgirod closed 4 years ago

tgirod commented 5 years ago

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?

smyrman commented 5 years ago

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
MrSander commented 5 years ago

I confirm that pointing to the master version solves the issue. Thank you!

smyrman commented 4 years ago

As v0.2 has been released some time ago, I am closing this issue.