@nprofile1q... nice! Looks like Rust, Go and Haskell have good support for dealing with dependencies:
https://docs.freebsd.org/en/books/porters-handbook/special/#using-cargoInterestingly Fedora says that Go programs *must* vendor their dependencies (which contradicts the usual no vendoring for system packages...)
https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_vendored_dependenciesAlthough it seems like a better way forward would be to add better support for emitting distro packages into the upstream language-specific tooling. That'd be a one-off effort / language ecosystem, rather than having each library/application having to figure out how to do this on its own.
It'd probably require augmenting the upstream language-specific packages with more metadata, although it feels like a
https://xkcd.com/927/ problem.