-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix semver parsing in APT and From_Output
- Loading branch information
Showing
12 changed files
with
120 additions
and
51 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
Submodule semantic_versioning
updated
5 files
+11 −20 | .github/workflows/build.yml | |
+4 −0 | src/semantic_versioning-demo.adb | |
+4 −2 | src/semantic_versioning-parser.adb | |
+30 −6 | src/semantic_versioning.adb | |
+3 −0 | src/semver.ads |
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
Empty file.
10 changes: 10 additions & 0 deletions
10
testsuite/tests/externals/bad-versions/my_index/index/cr/crate1/crate1-external.toml
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 @@ | ||
description = "Sample crate" | ||
name = "crate1" | ||
licenses = [] | ||
maintainers = ["[email protected]"] | ||
maintainers-logins = ["someone"] | ||
|
||
[[external]] | ||
kind = "version-output" | ||
version-command = ["echo", "1.1abc"] # Should result in 1.1.0+abc | ||
version-regexp = "(.*)" |
10 changes: 10 additions & 0 deletions
10
testsuite/tests/externals/bad-versions/my_index/index/cr/crate2/crate2-external.toml
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 @@ | ||
description = "Sample crate" | ||
name = "crate2" | ||
licenses = [] | ||
maintainers = ["[email protected]"] | ||
maintainers-logins = ["someone"] | ||
|
||
[[external]] | ||
kind = "version-output" | ||
version-command = ["echo", "1.1.abc"] # Should result in 1.1.0+.abc | ||
version-regexp = "(.*)" |
1 change: 1 addition & 0 deletions
1
testsuite/tests/externals/bad-versions/my_index/index/index.toml
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 @@ | ||
version = "1.2" |
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,18 @@ | ||
""" | ||
Check that external version detector doesn't crash on problematic versions we | ||
have been seeing in the wild. | ||
""" | ||
|
||
from drivers.alr import run_alr | ||
from drivers.asserts import assert_substring | ||
|
||
|
||
def check_version(crate_name, version: str): | ||
assert_substring(version, | ||
run_alr("show", crate_name, "--external-detect").out) | ||
|
||
|
||
check_version("crate1", "1.1.0+abc") | ||
check_version("crate2", "1.1.0+.abc") | ||
|
||
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,5 @@ | ||
driver: python-script | ||
build_mode: both | ||
indexes: | ||
my_index: | ||
in_fixtures: false |