-
Notifications
You must be signed in to change notification settings - Fork 91
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
Help needed: unable to import package "github.com/Maistra/istio/pkg/servicemesh" #78
Comments
Hi,
You need to use the canonical name of the package when importing (
istio.io/istio/...):
import maistrav1
"istio.io/istio/pkg/servicemesh/client/clientset/versioned/typed/servicemesh/v1"
In go.mod, you then need the following entries:
require (
istio.io/istio v1.4.0
)
replace istio.io/istio => github.com/Maistra/istio
v0.0.0-20200107173459-4638b96d0091
Hope this helps
Marko
…On Wed, Feb 12, 2020 at 9:32 PM lbcdev ***@***.***> wrote:
Hi team,
I am trying to import ServiceMeshMemberRoll type in a Go client, but
failed.
Go version: go1.13.4 darwin/amd64
The code looks like:
import
maistrav1 "
github.com/Maistra/istio/pkg/servicemesh/client/clientset/versioned/typed/servicemesh/v1
"
...
type ServiceMeshMemberRollInterface struct {
V1 *maistrav1.ServiceMeshMemberRollInterface
}
In the go.mod, I added:
github.com/Maistra/istio v0.0.0-20181105172658-41d45b880a2f // indirect
Did I import the wrong library?
Thanks.
Longbin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#78>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGJCHNVUUBRZWK564LGPW3RCRMEXANCNFSM4KUDXQ3Q>
.
|
Hi Marko, Thanks for the help. I tried this but istio.io/istio v1.4.0 didn't work in go.mod. The error is: My go version is 1.13.4. If I use go get istio.io/istio@master, it add a version below: Is it my go version or did I miss something else? Thanks, |
Did you add the |
Hi Marko, I forgot to add the replace line and now it works. Best, |
Hi team,
I am trying to import ServiceMeshMemberRoll type in a Go client, but failed.
Go version: go1.13.4 darwin/amd64
The code looks like:
import
maistrav1 "github.com/Maistra/istio/pkg/servicemesh/client/clientset/versioned/typed/servicemesh/v1"
...
type ServiceMeshMemberRollInterface struct {
V1 *maistrav1.ServiceMeshMemberRollInterface
}
In the go.mod, I added:
github.com/Maistra/istio v0.0.0-20181105172658-41d45b880a2f // indirect
Did I import the wrong library?
Thanks.
Longbin
The text was updated successfully, but these errors were encountered: