gnostic icon indicating copy to clipboard operation
gnostic copied to clipboard

Case change in package paths breaks builds

Open alanconway opened this issue 4 years ago • 3 comments

See comment on https://github.com/googleapis/gnostic/commit/896953e6749863beec38e27029c804e88c3144b8#commitcomment-37259173

alanconway avatar Feb 12 '20 18:02 alanconway

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

sb10 avatar Mar 02 '20 13:03 sb10

Same here

EwanValentine avatar Mar 14 '20 15:03 EwanValentine

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"

  1. grep -rn github.com/googleapis/gnostic/openapiv2 ../../go/pkg/mod/
  2. grep -rn github.com/googleapis/gnostic/OpenAPIv2 ../../go/pkg/mod/
  3. "github.com/googleapis/gnostic/openapiv2" is newer, so i replace all imports for github.com/googleapis/gnostic/OpenAPIv2 pkgs. In my case is k8s.io/client-go and I replaced it with github.com/kubernetes/client-go

aloisio31 avatar Sep 10 '20 03:09 aloisio31