New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show linked paths and per-release dependencies in --solve
solutions
#453
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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 @@ | ||
[general] | ||
description = "A better hello" | ||
licenses = ["GPL 3.0", "MIT"] | ||
website = "example.com" | ||
maintainers = ["bob@example.com"] | ||
maintainers-logins = ["mylogin"] | ||
authors = ["Bob", "Alice"] | ||
|
||
|
||
['1.0.0'] | ||
origin = "file://." | ||
|
||
['1.0.0'.depends-on] | ||
libhello = "~1.0" |
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,35 @@ | ||
""" | ||
Test that a dependency that is introduced by two dependents with different | ||
constraints is properly solved and shown. | ||
""" | ||
|
||
import os | ||
import re | ||
|
||
from drivers.alr import run_alr | ||
from drivers.asserts import assert_match | ||
|
||
# Initialize project | ||
run_alr('init', '--bin', 'xxx') | ||
os.chdir('xxx') | ||
|
||
# Add dependency on hello^1. Solution is hello=1.0.1 --> libhello=1.1.0 | ||
run_alr('with', 'hello^1') | ||
p = run_alr('with', '--solve') | ||
assert_match('.*' # skip solution | ||
'Dependencies \(graph\):\n' | ||
' hello=1.0.1 --> libhello=1.1.0 \(\^1.0\).*', | ||
p.out, flags=re.S) | ||
|
||
# Add dependency on superhello*. Solution is superhello=1.0 --> libhello=1.0.1 | ||
# This implies a downgrade from libhello=1.1.0 to libhello=1.0.1, which is the | ||
# only possible combination of libhello^1.0 & libhello~1.0 | ||
run_alr('with', 'superhello') | ||
p = run_alr('with', '--solve') | ||
assert_match('.*' # skip solution | ||
'Dependencies \(graph\):\n' | ||
' hello=1.0.1 --> libhello=1.0.1 \(\^1.0\)\n' | ||
' superhello=1.0.0 --> libhello=1.0.1 \(~1.0\).*', | ||
p.out, flags=re.S) | ||
|
||
print('SUCCESS') |
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,3 @@ | ||
driver: python-script | ||
indexes: | ||
solver_index: {} |
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.
BTW @mosteo, this is now live on the website: https://alire.ada.dev/docs/#user-facing-changes-log
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.
Great! I had indeed forgotten about updating the website... :S