Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion registry/flutter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Flutter is an open source framework for building beautiful, nativ
full = "http:flutter"

[backends.options]
version_expr = 'fromJSON(body).releases | filter({#.channel == "stable"}) | map({#.version}) | sortVersions()'
version_expr = 'fromJSON(body).releases | filter({ #.channel == "stable" }) | map({ #.version }) | sortVersions()'
Comment thread
roele marked this conversation as resolved.
version_list_url = "https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json"
# Default URL for macos/windows (.zip archives)
# arch() maps: x64 -> "" (no suffix), arm64 -> "_arm64"
Expand Down
2 changes: 1 addition & 1 deletion registry/julia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test = { cmd = "julia --version", expected = "julia version" }
full = "http:julia"

[backends.options]
version_expr = 'sortVersions(filter(keys(fromJSON(body)), {# matches "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z\\.-]+)?$"}))'
version_expr = 'sortVersions(filter(keys(fromJSON(body)), { # matches "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z\\.-]+)?$" }))'
version_list_url = "https://julialang-s3.julialang.org/bin/versions.json"

[backends.options.platforms.macos-x64]
Expand Down
4 changes: 2 additions & 2 deletions src/backend/version_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ mod tests {
content,
None,
None,
Some(r#"fromJSON(body).releases | filter({#.channel == "stable"}) | map({#.version}) | sortVersions()"#),
Some(r#"fromJSON(body).releases | filter({ #.channel == "stable" }) | map({ #.version }) | sortVersions()"#),
)
.unwrap();
assert_eq!(versions, vec!["1.0.0", "3.38.6", "3.38.7"]);
Expand Down Expand Up @@ -394,7 +394,7 @@ mod tests {
content,
None,
None,
Some(r#"sortVersions(filter(keys(fromJSON(body)), {# matches "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z\\.-]+)?$"}))"#),
Some(r#"sortVersions(filter(keys(fromJSON(body)), { # matches "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z\\.-]+)?$" }))"#),
)
.unwrap();
assert_eq!(versions, vec!["1.0.0", "1.1.0", "1.2.0-rc1"]);
Expand Down
Loading