From 6c84a50d3d86c6fecc619f081171d38c0c9af16b Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Wed, 17 Apr 2024 15:22:20 +0200 Subject: [PATCH] fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. --- ci/scripts/bump-and-tag.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/bump-and-tag.bash b/ci/scripts/bump-and-tag.bash index 4288a9f50..d762ef63b 100644 --- a/ci/scripts/bump-and-tag.bash +++ b/ci/scripts/bump-and-tag.bash @@ -42,7 +42,7 @@ git commit version.txt Cargo.toml Cargo.toml.in Cargo.lock -m "chore: Bump versi # Select all package dependencies that match $bump_deps_pattern and bump them to $bump_deps_version if [[ "$bump_deps_pattern" != '' ]]; then - deps=$(toml get Cargo.toml dependencies | jq -r "keys.[] | select(test(\"$bump_deps_pattern\"))") + deps=$(toml get Cargo.toml dependencies | jq -r "keys[] | select(test(\"$bump_deps_pattern\"))") for dep in $deps; do if [[ -n $bump_deps_version ]]; then toml_set_in_place Cargo.toml "dependencies.$dep.version" "$bump_deps_version"