mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-05 22:43:10 +00:00
This patch adds a special, internal, "codependencies" package that allows us to specify minimum required versions for modules we don't directly depend on. Downside: * Anyone using this module will also have to download these deprecated modules. Upside: * After upgrading this module, all "codependencies" will automatically be upgraded to compatible versions. * If unused, codependencies will _not_ end up bloating the binary size. This is because "usage" is computed at the import/package layer, while module version requirements are computed at the module layer.
614 B
614 B
This package allows us to depend on other modules, to force these other modules to upgrade to some minimum version. This allows us to express "co dependency" requirements in cases where this module doesn't strictly speaking depend on another module, but conflicts with some version of that module.
In practice, this means:
- Packages imported here will not end up in the final binary as nothing imports this package.
- Modules containing these packages will, unfortunately, be downloaded as "dependencies" of this package.
- Anyone using this module will be forced to upgrade all co-dependencies.