GoogleCloudPlatform / GoogleCloudPlatform/container-engine-accelerators

dependency on k8s.io/kubernetes cause build failure

Open
#169 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
252
Forks
184
Avg merge
1h 55m
Merged PRs (30d)
2

Description

My application is depending upon `github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics`, and `k8s.io/kubernetes` is in its indirect dependencies. Because of it, `go build` command fails with the following messages.

```
go build
go: finding module for package github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics
go: found github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia/metrics in github.com/GoogleCloudPlatform/container-engine-accelerators v0.0.0-20201215190136-13a0dea71c2e
go: github.com/GoogleCloudPlatform/container-engine-accelerators@v0.0.0-20201215190136-13a0dea71c2e requires
k8s.io/kubernetes@v1.19.3 requires
k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
```

The issue is already reported here (https://github.com/kubernetes/kubernetes/issues/90358) but hopefully someone can conduct the workaround introduced in the issue thread.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.