Closed seanmalloy closed 5 years ago
@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 go.mod
file ...
module path/to/my/project
go 1.12
require github.com/jbogarin/go-cisco-webex-teams v0.3.0
// Work around issue with github.com/jbogarin/go-cisco-webex-teams Go Module support
replace github.com/jbogarin/go-cisco-webex-teams => github.com/KohlsTechnology/go-cisco-webex-teams v0.3.1-0.20190923041206-1f5a3fb1071a
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:
module github.com/whatever/mytestapp
go 1.14
require github.com/jbogarin/go-cisco-webex-teams v0.3.0 // indirect
Error:
go: finding module for package github.com/peterhellberg/link
go: finding module for package github.com/google/go-querystring/query
go: finding module for package github.com/go-resty/resty
go: found github.com/go-resty/resty in github.com/go-resty/resty v1.12.0
go: found github.com/google/go-querystring/query in github.com/google/go-querystring v1.0.0
go: found github.com/peterhellberg/link in github.com/peterhellberg/link v1.1.0
go: github.com/jbogarin/go-cisco-webex-teams/sdk imports
github.com/go-resty/resty: github.com/go-resty/resty@v1.12.0: parsing go.mod:
module declares its path as: gopkg.in/resty.v1
but was required as: github.com/go-resty/resty
@darrenparkinson you have to use master
instead of v0.3.0
until a new release is created.
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"
?