You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
#1576
Closed
Neytoph opened this issue
Apr 20, 2022
· 1 comment
when i build go project, i got # github.com/kubeflow/common/pkg/apis/common/v1 /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:306:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:342:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:348:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:362:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:374:11: cannot use ref("github.com/kubeflow/common/pkg/apis/common/v1.JobCondition") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:388:11: cannot use ref("github.com/kubeflow/common/pkg/apis/common/v1.ReplicaStatus") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:397:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:403:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:409:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:438:8: cannot use ref("k8s.io/api/core/v1.PodTemplateSpec") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:438:8: too many errors
my env:
go version
go.mod
when i build go project, i got
# github.com/kubeflow/common/pkg/apis/common/v1 /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:306:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:342:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:348:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:362:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:374:11: cannot use ref("github.com/kubeflow/common/pkg/apis/common/v1.JobCondition") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:388:11: cannot use ref("github.com/kubeflow/common/pkg/apis/common/v1.ReplicaStatus") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:397:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:403:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:409:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:438:8: cannot use ref("k8s.io/api/core/v1.PodTemplateSpec") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value /root/go/pkg/mod/github.com/kubeflow/common@v0.4.1/pkg/apis/common/v1/openapi_generated.go:438:8: too many errors
it seem like tektoncd/pipeline#4320 but i can't fix it
The text was updated successfully, but these errors were encountered: