-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[packages] Fix dependency override prunning issue (#13921)
## Description Fixes an issue related to pruning overridden dependencies during dependency graph construction. More concretely, when tryin to find dependency paths in a pruned sub-graph, one could encounter no target node if this node was representing a pruned overridden package. The proposed solution is to simply also search for the target node in the overrides map (if a search for it in the sub-graph fails) ## Test Plan Added a test for this specific scenario, plus all existing tests must pass. --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
Showing
8 changed files
with
408 additions
and
18 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
33 changes: 33 additions & 0 deletions
33
tools/move-package/tests/test_sources/nested_deps_shared_override/Move.locked
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,33 @@ | ||
# @generated by Move, please check-in and do not edit manually. | ||
|
||
[move] | ||
version = 0 | ||
manifest_digest = "D2FFFC63D2AF7BF7028F583317C7ACF0EBB9E6B9F0DFC6D8FB46732AF7B552E4" | ||
deps_digest = "060AD7E57DFB13104F21BE5F5C3759D03F0553FC3229247D9A7A6B45F50D03A3" | ||
|
||
dependencies = [ | ||
{ name = "More" }, | ||
{ name = "Nested" }, | ||
{ name = "Shared" }, | ||
] | ||
|
||
[[move.package]] | ||
name = "More" | ||
source = { local = "deps_only/more" } | ||
|
||
dependencies = [ | ||
{ name = "Shared" }, | ||
] | ||
|
||
[[move.package]] | ||
name = "Nested" | ||
source = { local = "deps_only/nested" } | ||
|
||
dependencies = [ | ||
{ name = "More" }, | ||
{ name = "Shared" }, | ||
] | ||
|
||
[[move.package]] | ||
name = "Shared" | ||
source = { local = "deps_only/shared" } |
Oops, something went wrong.