-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from multiformats/feat/codependencies
dep: add "codependencies" for handling version conflicts
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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. | ||
We are using this here to depend on deprecated modules that have been | ||
merged into this package. | ||
|
||
In practice, this means: | ||
|
||
1. Packages imported here _will not_ end up in the final binary as nothing | ||
imports this package. | ||
2. Modules containing these packages will, unfortunately, be downloaded as | ||
"dependencies" of this package. | ||
3. Anyone using this module will be forced to upgrade all co-dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package codependencies | ||
|
||
import ( | ||
// Packages imported into this package. | ||
|
||
// go-multiaddr-net < 0.2.0 conflict with this package. | ||
_ "github.com/multiformats/go-multiaddr-net" | ||
// go-maddr-filter < 0.1.0 conflicts with this package. | ||
_ "github.com/libp2p/go-maddr-filter" | ||
) |