Common APIs and libraries shared by other Kubeflow operator repositories.
Apache License 2.0
51
stars
73
forks
source link
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 #191
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 https://github.com/tektoncd/pipeline/issues/4320 but i can't fix it