Update dependency modules; split repo into submodules #1238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change updates dcrwallet to perform a module-aware build with the latest
versions of its dependencies. It also splits the repo from being a single
module to a collection of multiple modules for package consumption by other
projects.
All dcrwallet modules used by other dcrwallet modules use 'replace' directives
in their go.mod files to reference the dependency using a relative file path.
This allows the repo to have split published modules, and to refer to
unpublished module versions before tagging, while still allowing local
development and testing using the most recent changes of any given imported
major version of a module.
The following modules and versions are provided by this change:
github.com/decred/dcrwallet/chain@v1.0.0
github.com/decred/dcrwallet/deployments@v1.0.0
github.com/decred/dcrwallet/errors@v1.0.0
github.com/decred/dcrwallet/internal/helpers@v1.0.0
github.com/decred/dcrwallet/internal/zero@v1.0.0
github.com/decred/dcrwallet/lru@v1.0.0
github.com/decred/dcrwallet/p2p@v1.0.0
github.com/decred/dcrwallet/pgpwordlist@v1.0.0
github.com/decred/dcrwallet/spv@v1.0.0
github.com/decred/dcrwallet/ticketbuyer@v1.0.0
github.com/decred/dcrwallet/ticketbuyer/v2@v2.0.0
github.com/decred/dcrwallet/validate@v1.0.0
github.com/decred/dcrwallet/wallet@v1.0.0
github.com/decred/dcrwallet/walletseed@v1.0.0
A module in the project root also exists to provide reproducible builds, but
packages in this module are not intended for consumption as libraries for other
projects.
The repo must be tagged following this change to publish these modules and
versions to outside projects.