kcp-dev / code-generator

Generators for workspace-aware clientsets, informers, and listers
Apache License 2.0
4 stars 11 forks source link

cyclic dependency with github.com/kcp-dev/client-go #75

Open p0lyn0mial opened 1 year ago

p0lyn0mial commented 1 year ago

generated code in github.com/kcp-dev/code-generator/examples has a dependency on github.com/kcp-dev/client-go/tree/main/third_party/k8s.io/client-go

when changes to kcp-dev/client-go repository also require to generate some code we need a corresponding code-generator (https://github.com/kcp-dev/client-go/blob/main/Makefile#L26) which might lead to a dead end.

In my case I had made a change to kcp-dev/client-go/third_party which is required by code-generator/examples and kcp-dev/client-go/informers (kcpinformers "github.com/kcp-dev/apimachinery/third_party/informers")

p0lyn0mial commented 1 year ago

/cc @stevekuznetsov @ncdc