gnostic
gnostic copied to clipboard
Case change in package paths breaks builds
See comment on https://github.com/googleapis/gnostic/commit/896953e6749863beec38e27029c804e88c3144b8#commitcomment-37259173
For an example of an error message, here is me trying to build something that relies on a particular old version of k8s.io/client-go:
go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
../../../../../go/pkg/mod/k8s.io/[email protected]+incompatible/discovery/discovery_client.go:27:2: module github.com/googleapis/gnostic@latest found (v0.4.1), but does not contain package github.com/googleapis/gnostic/OpenAPIv2
Same here
here is errors when i use go mod:
+ go build -o bin/wukong ../../go/pkg/mod/k8s.io/[email protected]/pkg/util/proto/document.go:24:2: case-insensitive import collision: "github.com/googleapis/gnostic/openapiv2" and "github.com/googleapis/gnostic/OpenAPIv2"
-
grep -rn github.com/googleapis/gnostic/openapiv2 ../../go/pkg/mod/
-
grep -rn github.com/googleapis/gnostic/OpenAPIv2 ../../go/pkg/mod/
-
"github.com/googleapis/gnostic/openapiv2"
is newer, so i replace all imports forgithub.com/googleapis/gnostic/OpenAPIv2
pkgs. In my case isk8s.io/client-go
and I replaced it withgithub.com/kubernetes/client-go