pl-strflt / ipdx

2 stars 0 forks source link

go monorepo tooling for package dependencies #80

Open BigLep opened 1 year ago

BigLep commented 1 year ago

TODO: a go engineer needs to fill this in (@jorropo? @aschmahmann)

As we have more go monorepos with various packages, we want to have a mechanism (CI check?) for being notified if the dependency closure of a given package expands, especially from taking on a dependency of another package in the repo.

Examples where this has been discussed or where I would believe it would helpful:

galargh commented 1 year ago

being notified if the dependency closure of a given package expands, especially from taking on a dependency of another package in the repo

Would you mind rewording this or describing an example scenario when we could use a notification? I want to make sure I understand the idea behind this.

BigLep commented 1 year ago

@galargh

being notified if the dependency closure of a given package expands, especially from taking on a dependency of another package in the repo

Would you mind rewording this or describing an example scenario when we could use a notification? I want to make sure I understand the idea behind this.

Sorry not to be more clear. I don't have a full vision here but taking boxo modules for example, we would want to have a way to say that "gateway" doesn't depend on "bitswap" (and vice versa). If that should ever happen, the build should fail.

It could also be helpful to show the dependency closure from each module in isolation. For example if everyone thinks "util" should be self-contained, but at release time we could check to see if that is still true or check in the dependency tree so so someone can compare between two releases. We would want to validate that any diff is intentional and expected.