I am using knative.dev/client v0.42.0 and I am trying to upgrade it to 0.47.0. I am using also:
- knative.dev/networking v0.0.0-20251103014656-7d4a19889854
- knative.dev/pkg v0.0.0-20251104154049-5037c4760829
- knative.dev/serving v0.47.0.
When I execute go mod tidy, I get an error:
knative.dev/client/pkg/serving/v1: knative.dev/client/[email protected]: invalid version: unknown revision 000000000000
knative.dev/client/pkg/wait: knative.dev/client/[email protected]: invalid version: unknown revision 000000000000
I do not have any replace statements in my go.mod, it is pretty straight forward, but when I open the go.mod of knative/client(https://github.com/knative/client/blob/main/go.mod) I see that they use replace exactly for that. Obviously it can not work with my project because I do not have such pkg folder.
module knative.dev/client
go 1.24.0
require (
github.com/spf13/cobra v1.8.1
gotest.tools/v3 v3.3.0
k8s.io/api v0.33.5
k8s.io/apimachinery v0.33.5
k8s.io/code-generator v0.33.5
knative.dev/client/pkg v0.0.0-00010101000000-000000000000
knative.dev/hack v0.0.0-20251021013703-4fae78067103
knative.dev/networking v0.0.0-20251030154838-4115314567bb
knative.dev/pkg v0.0.0-20251022152246-7bf6febca0b3
knative.dev/serving v0.47.0
sigs.k8s.io/yaml v1.6.0
)
replace knative.dev/client/pkg => ./pkg
So, am I using it wrongly or what? Does anybody have an idea how I can make it work without making a local copy of the repo? Thank you.
v0.0.0-00010101000000-000000000000version in your go.mod file? The part between the two dashes (the middle one) is a timestamp, and the rightmost part is the commit hash. Obviously, both are invalid, so the error «unknown revision 000000000000» (ostensibly reported by some invocation of thegotool) is sort of expected as it cannot find the commit with that hash in the repository hosting the knative.dev/client/pkg package../pkgdirectory. Something else is going on, I'm guessing that you have some incompatible combination of knative.dev packages, or are using one which isn't meant to be externally imported. Can you remove them all from yourgo.modand get a new working set withgo mod tidy?go.modand have it get a working set of versions withgo mod tidy? Otherwise you can open an issue with the project about their invalidgo.modentry