File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,7 +196,10 @@ add_cli_entry() {
196196 --argjson entry " $cli_entry " \
197197 --argjson stubs " $stubs " \
198198 '
199- .stellar_cli_versions += [$entry]
199+ .stellar_cli_versions |= (
200+ . + [$entry]
201+ | sort_by(.version | split(".") | map(tonumber))
202+ )
200203 | .rust_image_digests = ($stubs + .rust_image_digests)
201204 ' \
202205 " $BUILDS_JSON_PATH " > " $tmp "
@@ -231,8 +234,9 @@ extend_cli_entry() {
231234 --argjson rust_versions " $merged " \
232235 --argjson stubs " $stubs " \
233236 '
234- .stellar_cli_versions |= map(
235- if .version == $cli then .rust_versions = $rust_versions else . end
237+ .stellar_cli_versions |= (
238+ map(if .version == $cli then .rust_versions = $rust_versions else . end)
239+ | sort_by(.version | split(".") | map(tonumber))
236240 )
237241 | .rust_image_digests = ($stubs + .rust_image_digests)
238242 ' \
You can’t perform that action at this time.
0 commit comments