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

"module declares its path as" problem #35

Open
AlexeyKukin opened this issue Jun 15, 2021 · 3 comments
Open

"module declares its path as" problem #35

AlexeyKukin opened this issue Jun 15, 2021 · 3 comments

Comments

@AlexeyKukin
Copy link

AlexeyKukin commented Jun 15, 2021

Hello!
When i've try do import:
import "github.com/projectcalico/libcalico-go/lib/client"

>go mod tidy
go: finding module for package github.com/projectcalico/libcalico-go/lib/client
go: found github.com/projectcalico/libcalico-go/lib/client in github.com/projectcalico/libcalico-go v1.7.3
go: finding module for package github.com/kelseyhightower/envconfig
go: finding module for package github.com/sirupsen/logrus
go: finding module for package github.com/projectcalico/go-yaml-wrapper
go: finding module for package github.com/satori/go.uuid
go: finding module for package github.com/onsi/ginkgo/extensions/table
go: finding module for package github.com/onsi/ginkgo
go: finding module for package gopkg.in/go-playground/validator.v8
go: finding module for package github.com/onsi/gomega
go: finding module for package github.com/coreos/etcd/client
go: finding module for package github.com/coreos/etcd/pkg/transport
go: finding module for package golang.org/x/net/context
go: finding module for package k8s.io/apimachinery/pkg/apis/meta/v1
go: finding module for package k8s.io/apimachinery/pkg/fields
go: finding module for package k8s.io/apimachinery/pkg/runtime
go: finding module for package k8s.io/apimachinery/pkg/runtime/schema
go: finding module for package k8s.io/apimachinery/pkg/runtime/serializer
go: finding module for package k8s.io/apimachinery/pkg/util/intstr
go: finding module for package k8s.io/apimachinery/pkg/util/wait
go: finding module for package k8s.io/apimachinery/pkg/watch
go: finding module for package k8s.io/client-go/kubernetes
go: finding module for package k8s.io/client-go/pkg/api
go: finding module for package k8s.io/client-go/pkg/api/v1
go: finding module for package k8s.io/client-go/plugin/pkg/client/auth
go: finding module for package k8s.io/client-go/rest
go: finding module for package k8s.io/client-go/tools/cache
go: finding module for package k8s.io/client-go/tools/clientcmd
go: finding module for package gopkg.in/tchap/go-patricia.v2/patricia
go: finding module for package k8s.io/apimachinery/pkg/api/errors
go: found github.com/kelseyhightower/envconfig in github.com/kelseyhightower/envconfig v1.4.0
go: found github.com/projectcalico/go-yaml-wrapper in github.com/projectcalico/go-yaml-wrapper v0.0.0-20191112210931-090425220c54
go: found github.com/satori/go.uuid in github.com/satori/go.uuid v1.2.0
go: found github.com/sirupsen/logrus in github.com/sirupsen/logrus v1.8.1
go: found gopkg.in/go-playground/validator.v8 in gopkg.in/go-playground/validator.v8 v8.18.2
go: found github.com/onsi/ginkgo in github.com/onsi/ginkgo v1.16.4
go: found github.com/onsi/ginkgo/extensions/table in github.com/onsi/ginkgo v1.16.4
go: found github.com/onsi/gomega in github.com/onsi/gomega v1.13.0
go: found github.com/coreos/etcd/client in github.com/coreos/etcd v3.3.25+incompatible
go: found github.com/coreos/etcd/pkg/transport in github.com/coreos/etcd v3.3.25+incompatible
go: found golang.org/x/net/context in golang.org/x/net v0.0.0-20210614182718-04defd469f4e
go: found k8s.io/apimachinery/pkg/apis/meta/v1 in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/fields in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/runtime in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/runtime/schema in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/runtime/serializer in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/util/intstr in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/util/wait in k8s.io/apimachinery v0.21.1
go: found k8s.io/apimachinery/pkg/watch in k8s.io/apimachinery v0.21.1
go: found k8s.io/client-go/kubernetes in k8s.io/client-go v0.21.1
go: found k8s.io/client-go/plugin/pkg/client/auth in k8s.io/client-go v0.21.1
go: found k8s.io/client-go/rest in k8s.io/client-go v0.21.1
go: found k8s.io/client-go/tools/cache in k8s.io/client-go v0.21.1
go: found k8s.io/client-go/tools/clientcmd in k8s.io/client-go v0.21.1
go: found gopkg.in/tchap/go-patricia.v2/patricia in gopkg.in/tchap/go-patricia.v2 v2.3.1
go: found k8s.io/apimachinery/pkg/api/errors in k8s.io/apimachinery v0.21.1
go: calicoget imports
        github.com/projectcalico/libcalico-go/lib/client imports
        github.com/projectcalico/libcalico-go/lib/backend imports
        github.com/projectcalico/libcalico-go/lib/backend/etcd imports
        github.com/projectcalico/libcalico-go/lib/hwm imports
        gopkg.in/tchap/go-patricia.v2/patricia: gopkg.in/tchap/[email protected]: parsing go.mod:
        module declares its path as: github.com/tchap/go-patricia/v2
                but was required as: gopkg.in/tchap/go-patricia.v2

Look like some problems with import module. TY

@song-jiang
Copy link

I hit the same issue. It is because go-patricia updated its' import path and somehow you are still pinned to an old libcalico-go .

@cyclinder
Copy link

Hello, I also hot the issue, Can you tell me how to fix it? thanks.

@tchap
Copy link
Owner

tchap commented Feb 22, 2024

This seems to be a problem with libcalico-go, doesn't it?

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

No branches or pull requests

4 participants