[QUESTION/HELP] go: k8s.io/[email protected]: invalid version: unknown revision v0.0.0 #1328
Replies: 4 comments
-
Hitting the same issue. I believe this is where it is coming from: https://github.com/rancher/wharfie/blob/cf9a8880fbd75445c3ce0fcab2c5b21548bc197c/go.mod#L88 |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 |
Beta Was this translation helpful? Give feedback.
-
you need to add require or replace statements to your go.mod to pull in specific versions of Kubernetes. For example: You'll see this same pattern across all projects that import Kubernetes libs. Repeat those entries for any other Kubernetes libraries your project is importing, either explicitly or implicitly. Note that replace entries from go.mod don't don't affect projects that import that module; each project needs to add them on their own. |
Beta Was this translation helpful? Give feedback.
-
@brandond thank you, so it is indeed what's written everywhere. |
Beta Was this translation helpful? Give feedback.
-
trying to use pkg client but got an error when go mod tidy
Beta Was this translation helpful? Give feedback.
All reactions