Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing go.mod: unexpected module path "gopkg.in/resty.v1" #230

Closed
kourtni opened this issue Feb 27, 2019 · 4 comments
Closed

parsing go.mod: unexpected module path "gopkg.in/resty.v1" #230

kourtni opened this issue Feb 27, 2019 · 4 comments
Assignees
Labels

Comments

@kourtni
Copy link

kourtni commented Feb 27, 2019

Hi,

I'm trying to generate a go.mod file for a project I'm working on. However it is failing with:

go: github.com/go-resty/[email protected]: parsing go.mod: unexpected module path "gopkg.in/resty.v1"
go: error loading module requirements

We don't directly depend on resty, so not certain how I can get beyond this issue.

@jeevatkm
Copy link
Member

jeevatkm commented Feb 27, 2019

@kourtni It seems, one of your project dependencies uses incorrect resty import path for go mod refer here.

Could you try the following, add this into go.mod after the require block?

replace github.com/go-resty/resty => gopkg.in/resty.v1 v1.11.0

@kourtni
Copy link
Author

kourtni commented Feb 27, 2019

That worked. Thanks!

@kourtni kourtni closed this as completed Feb 27, 2019
@jeevatkm jeevatkm self-assigned this Feb 27, 2019
@jeevatkm jeevatkm mentioned this issue May 26, 2019
tbg added a commit to tbg/etcd that referenced this issue May 30, 2019
go-resty is imported under its old import path by grpc-gateway.
This works around that problem until we pick up a version of
grpc-gateway that has the imports fixed.

See: go-resty/resty#230
tbg added a commit to tbg/etcd that referenced this issue Jun 3, 2019
go-resty is imported under its old import path by grpc-gateway.
This works around that problem until we pick up a version of
grpc-gateway that has the imports fixed.

See: go-resty/resty#230
@kotyara85
Copy link

Having the same issue,
My go.mod is :
gopkg.in/resty.v2 v2.0.0

$ GO111MODULE=on go mod vendor
go: gopkg.in/[email protected]: go.mod has non-....v2 module path "github.com/go-resty/resty/v2" at revision v2.0.0

@jeevatkm
Copy link
Member

@kourtni For v2 usage please refer to readme at https://github.com/go-resty/resty#installation and usage.

There are breaking changes in v2 release, please refer to release notes https://github.com/go-resty/resty/releases/tag/v2.0.0 at Breaking Changes - Migrating v1.x to v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants