vmware-tanzu / tanzu-framework

Tanzu Framework provides a set of building blocks to build atop of the Tanzu platform and leverages Carvel packaging and plugins to provide users with a much stronger, more integrated experience than the loose coupling and stand-alone commands of the previous generation of tools.
Apache License 2.0
197 stars 194 forks source link

go build github.com/vmware-tanzu/tanzu-framework/pkg/v1/tkg/tkgpackageclient fails #1239

Open pradeep288 opened 2 years ago

pradeep288 commented 2 years ago

Bug description go build github.com/vmware-tanzu/tanzu-framework/pkg/v1/tkg/tkgpackageclient fails

Affected product area (please put an X in all that apply)

Expected behavior build should succeed

Version (include the SHA if the version is not obvious) v.0.10.0

Environment where the bug was observed (cloud, OS, etc) MAC

Relevant Debug Output (Logs, manifests, etc)

github.com/vmware-tanzu/tanzu-framework/pkg/v1/tkg/tkgpackageclient

../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:89:64: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Delete: runtime.Object does not implement client.Object (missing GetAnnotations method) ../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:97:64: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Delete: runtime.Object does not implement client.Object (missing GetAnnotations method) ../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:108:64: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Delete: runtime.Object does not implement client.Object (missing GetAnnotations method) ../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:119:64: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Delete: runtime.Object does not implement client.Object (missing GetAnnotations method) ../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:177:59: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Get: runtime.Object does not implement client.Object (missing GetAnnotations method) ../../../pkg/mod/github.com/vmware-tanzu/tanzu-framework@v0.10.0/pkg/v1/tkg/tkgpackageclient/package_uninstall.go:195:64: cannot use obj (type runtime.Object) as type client.Object in argument to p.kappClient.GetClient().Delete: runtime.Object does not implement client.Object (missing GetAnnotations method)

blc1996 commented 2 years ago

Hi @pradeep288 , I could not replicate this issue. Could you elaborate more on why you run go build github.com/vmware-tanzu/tanzu-framework/pkg/v1/tkg/tkgpackageclient?

A guess would be there are some issues in you go.mod/go.sum file.