From a00d768d165b68434c935c0f6da0fd3898483f5b Mon Sep 17 00:00:00 2001 From: Tam Mach Date: Fri, 20 Sep 2024 21:57:10 +0700 Subject: [PATCH] hack: Manually update vendor files This is the fastest way to test changes while waiting for the below upstream PR, just a note as double replacement will not work well in golang. Relates: https://github.com/kubernetes-sigs/controller-tools/pull/1061 Signed-off-by: Tam Mach --- vendor/sigs.k8s.io/controller-tools/pkg/crd/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/sigs.k8s.io/controller-tools/pkg/crd/schema.go b/vendor/sigs.k8s.io/controller-tools/pkg/crd/schema.go index 55fdc1f8e6f208..4e76234460e35c 100644 --- a/vendor/sigs.k8s.io/controller-tools/pkg/crd/schema.go +++ b/vendor/sigs.k8s.io/controller-tools/pkg/crd/schema.go @@ -266,7 +266,7 @@ func localNamedToSchema(ctx *schemaContext, ident *ast.Ident) *apiext.JSONSchema } // NB(directxman12): if there are dot imports, this might be an external reference, // so use typechecking info to get the actual object - typeNameInfo := typeInfo.(*types.Named).Obj() + typeNameInfo := typeInfo.(interface{ Obj() *types.TypeName }).Obj() pkg := typeNameInfo.Pkg() pkgPath := loader.NonVendorPath(pkg.Path()) if pkg == ctx.pkg.Types {