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

Trying to import resty into a go module fails and refuses to build. #243

Closed
Galadros opened this issue May 13, 2019 · 4 comments
Closed
Assignees

Comments

@Galadros
Copy link

I have a program that includes resty. I'm trying to add gomodule support to it, but running into issues with importing resty. The error message is:

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

I think I see that v2 will fix this error- but do you have any idea when v2 might be coming, or any suggestions I can use for a workaround to still let me use go modules? I've been working at this for quite a while and can't easily find a solution- I can't actually figure out how to stop it trying to import github.com/go-resty-resty honestly.

@jeevatkm
Copy link
Member

@Galadros Please try this solution #230 (comment) with your version number.

I have to prepared v1 to v2 migration docs, once done I will make a release of v2.

@jeevatkm
Copy link
Member

@Galadros Any updates?

@Galadros
Copy link
Author

I managed to get this playing nicely after a while, which is good! There are some other oddities about how our deployment/compile process works that proved to be problematic, but eventually I did get it working. I still do appreciate your quick response!

Patrick

@jeevatkm
Copy link
Member

@Galadros Thank you for the updates.

@jeevatkm jeevatkm self-assigned this May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants