-
Notifications
You must be signed in to change notification settings - Fork 26
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
Resty v2 Go Modules Compatibility Error #7
Comments
@jbogarin I submitted pull request #8 with a proposed fix for this issue. I confirmed that my project now compiles using Go Modules using my proposed changes. Let me know what you think. My updated
|
PR #8 merged. Closing this issue |
Hi, I don't think this is fixed? |
@darrenparkinson do you need me to reopen this? I honestly just merge the PR. But if you need me to run more tests, I can do it. |
@darrenparkinson are you not able to use this library with go modules after #8 was merged? Can you provide more details on the problem you are seeing? Is there are error message? |
Hi, thanks for the response. Apologies for the delay. So yes, creating a new simple module and running it results in the same error. Does it need a new release? go.mod:
Error:
|
@darrenparkinson you have to use |
That's my bad. I'm trying to add some of the new APIs like devices, places and such. I'll get to it this week and create a new release. |
Similar to #6 i'm seeing the below error when trying to use Go Modules to build my project. I'm using Go Lang version 1.12.9.
Here is
main.go
...Here is
go.mod
...According to the resty v2 doc the correct import path for using resty v2 with Go Modules is
import "github.com/go-resty/resty/v2"
.https://github.com/go-resty/resty#installation
https://github.com/go-resty/resty#usage
Can/should the code in this project we updated to
import "github.com/go-resty/resty/v2"
instead of"github.com/go-resty/resty"
?The text was updated successfully, but these errors were encountered: