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/pkg@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000
knative.dev/client/pkg/wait: knative.dev/client/pkg@v0.0.0-00010101000000-000000000000: 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 idea how I can make it work without making a local copy of the repo? Thank you.