kubesphere / kubesphere/client-go
unable to import this module from a go project
- Dominant language
- Go
- Stars
- 10
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
With this imports
```
import (
"k8s.io/client-go/rest"
"kubesphere.io/client-go/client"
"kubesphere.io/client-go/client/generic"
)
```
I got the following errors.
```
go mod tidy
go: finding module for package kubesphere.io/client-go/client
go: finding module for package kubesphere.io/client-go/client/generic
github.com/ypjin/tokengen imports
kubesphere.io/client-go/client: module kubesphere.io/client-go@latest found (v7.0.0+incompatible), but does not contain package kubesphere.io/client-go/client
github.com/ypjin/tokengen imports
kubesphere.io/client-go/client/generic: module kubesphere.io/client-go@latest found (v7.0.0+incompatible), but does not contain package kubesphere.io/client-go/client/generic
```
It seems that it got `k8s.io/client-go` instead of `kubesphere.io/client-go`. The path `kubesphere.io/client-go` does not seem to point to the correct repo.
```
curl https://kubesphere.io/client-go\?go-get\=1
404 Not Found
404 Not Found
nginx/1.21.3
```
Whereas the path `k8s.io/client-go` works well.
```
curl https://k8s.io/client-go\?go-get\=1
```
Am I missing anything?
Best regards,
Contributor guide
Research direction
Start with the import block and the go mod tidy output, then inspect the go-import metadata returned by https://kubesphere.io/client-go?go-get=1 and compare it with the working k8s.io/client-go response. Done means the kubesphere.io/client-go and kubesphere.io/client-go/client/generic imports resolve correctly and go mod tidy completes without the reported package errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100