pulumi / kubespy

Tools for observing Kubernetes resources in real time, powered by Pulumi.
https://pulumi.com/
Apache License 2.0
2.89k stars 92 forks source link

Building v0.5.1 fails #73

Closed blaggacao closed 4 years ago

blaggacao commented 4 years ago

building kubespy on https://github.com/NixOS/nixpkgs/pull/92197 fails

$ pwd
~/ghq/github.com/NixOS/nixpkgs
$ nix-env -f '.' -iA kubespy
[...]
github.com/pulumi/pulumi-kubernetes/pkg/openapi
# github.com/pulumi/pulumi-kubernetes/pkg/openapi
go/src/github.com/pulumi/pulumi-kubernetes/pkg/openapi/openapi.go:64:39: cannot use gvk (type "k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind) as type "k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind in argument to resources.LookupResource
go/src/github.com/pulumi/pulumi-kubernetes/pkg/openapi/openapi.go:107:42: cannot use gvk (type "k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind) as type "k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind in argument to resources.LookupResource
go/src/github.com/pulumi/pulumi-kubernetes/pkg/openapi/openapi.go:110:29: cannot use resSchema (type "k8s.io/kubernetes/vendor/k8s.io/kube-openapi/pkg/util/proto".Schema) as type "k8s.io/kube-openapi/pkg/util/proto".Schema in argument to strategicMergePatch:
        "k8s.io/kubernetes/vendor/k8s.io/kube-openapi/pkg/util/proto".Schema does not implement "k8s.io/kube-openapi/pkg/util/proto".Schema (wrong type for Accept method)
                have Accept("k8s.io/kubernetes/vendor/k8s.io/kube-openapi/pkg/util/proto".SchemaVisitor)
                want Accept("k8s.io/kube-openapi/pkg/util/proto".SchemaVisitor)
go/src/github.com/pulumi/pulumi-kubernetes/pkg/openapi/openapi.go:165:44: cannot use gvk (type "k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind) as type "k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/schema".GroupVersionKind in argument to scheme.Scheme.New
go/src/github.com/pulumi/pulumi-kubernetes/pkg/openapi/openapi.go:216:31: cannot use schema (type *"github.com/googleapis/gnostic/OpenAPIv2".Document) as type *"k8s.io/kubernetes/vendor/github.com/googleapis/gnostic/OpenAPIv2".Document in argument to openapi.NewOpenAPIData
[...]
builder for '/nix/store/wpyzl74r48as7k5jcdp9r579nadsyc8p-kubespy-0.5.1.drv' failed with exit code 1
error: build of '/nix/store/wpyzl74r48as7k5jcdp9r579nadsyc8p-kubespy-0.5.1.drv' failed

Please note, that github.com/pulumi/pulumi-kubernetes is tagged according to https://github.com/pulumi/kubespy/commit/438edbfd5a9a72992803d45addb1f45b10a0b62f (=https://github.com/pulumi/kubespy/releases/tag/v0.5.1), see:

  {
    goPackagePath = "github.com/pulumi/pulumi-kubernetes";
    fetch = {
      type = "git";
      url = "https://github.com/pulumi/pulumi-kubernetes";
      rev = "v0.17.0";
      sha256 = "1qyxjsdxwx5nid0zg63wvbc5i1n7z36hhv9g0s891m65rcwvpmdl";
    };
  }

Being from Sep 11, 2018, https://github.com/pulumi/pulumi-kubernetes/releases/tag/v0.17.0 might be outdated, however it is tagged here: https://github.com/pulumi/kubespy/blob/master/go.mod#L58

blaggacao commented 4 years ago

Please ignore me. My bad. Sorry for noise.