This repository was archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 693
[move-package] Support dependency overrides #964
Draft
awelc
wants to merge
10
commits into
sui-move
Choose a base branch
from
aw/diamond-problem
base: sui-move
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
98570d0
[move-package] Support dependency overrides
awelc eb54a5c
Updated test outputs
awelc bd139e9
Brought back graph entries
awelc 8f938e1
Dependency override does not have to be an option
awelc 2bcfc51
Cosmetic Rust cleanup
awelc 2f0f791
Updated test output
awelc e1b18b5
Remove dependency overrides from lock files
awelc 8c71fe4
A solution for explicitly defined overrides
awelc b5f59d6
Normalized local paths when reading manifest
awelc 4a80f06
Cosmetic comment change
awelc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
413 changes: 321 additions & 92 deletions
413
language/tools/move-package/src/resolution/dependency_graph.rs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
3 changes: 3 additions & 0 deletions
3
language/tools/move-package/tests/test_sources/diamond_problem_dep_conflict/Move.resolved
This file contains hidden or 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,3 @@ | ||
| Failed to resolve dependencies for package 'Root': Resolving dependencies for package 'B': Conflicting dependencies found: | ||
| C = { local = "deps_only/C", version = "2.0.0" } | ||
| C = { local = "deps_only/C", version = "1.0.0" } |
7 changes: 7 additions & 0 deletions
7
language/tools/move-package/tests/test_sources/diamond_problem_dep_conflict/Move.toml
This file contains hidden or 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,7 @@ | ||
| [package] | ||
| name = "Root" | ||
| version = "0.0.0" | ||
|
|
||
| [dependencies] | ||
| A = { local = "./deps_only/A" } | ||
| B = { local = "./deps_only/B" } |
6 changes: 6 additions & 0 deletions
6
.../tools/move-package/tests/test_sources/diamond_problem_dep_conflict/deps_only/A/Move.toml
This file contains hidden or 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,6 @@ | ||
| [package] | ||
| name = "A" | ||
| version = "0.0.0" | ||
|
|
||
| [dependencies] | ||
| C = { local = "../C", version = "2.0.0" } |
6 changes: 6 additions & 0 deletions
6
.../tools/move-package/tests/test_sources/diamond_problem_dep_conflict/deps_only/B/Move.toml
This file contains hidden or 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,6 @@ | ||
| [package] | ||
| name = "B" | ||
| version = "0.0.0" | ||
|
|
||
| [dependencies] | ||
| C = { local = "../C", version = "1.0.0" } |
3 changes: 3 additions & 0 deletions
3
.../tools/move-package/tests/test_sources/diamond_problem_dep_conflict/deps_only/C/Move.toml
This file contains hidden or 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,3 @@ | ||
| [package] | ||
| name = "C" | ||
| version = "0.0.0" |
3 changes: 3 additions & 0 deletions
3
...tools/move-package/tests/test_sources/diamond_problem_dep_external_conflict/Move.resolved
This file contains hidden or 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,3 @@ | ||
| Failed to resolve dependencies for package 'Root': Adding dependencies from ../resolvers/successful.sh for dependency 'A' in 'Root': Conflicting dependencies found: | ||
| ADep = { local = "deps_only/ADep", version = "1.0.0" } | ||
| ADep = { local = "deps_only/ADep" } # Resolved by ../resolvers/successful.sh |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
unwrap_or?