From b7b8e9574ff305e85be4e64e3d20286ce818fa58 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Wed, 9 Feb 2022 16:19:50 -0800 Subject: [PATCH] tree-sitter: fix update script's prefetch It was including the quotes from jq into the tag name, which is incorrect --- pkgs/development/tools/parsing/tree-sitter/update.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/update.nix b/pkgs/development/tools/parsing/tree-sitter/update.nix index 166154f7481a..246574895e3c 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -376,7 +376,7 @@ let if [[ "$(printf "%s" "$res" | ${jq}/bin/jq '.message?')" =~ "rate limit" ]]; then echo "rate limited" >&2 fi - release=$(printf "%s" "$res" | ${jq}/bin/jq '.tag_name') + release="$(printf "%s" "$res" | ${jq}/bin/jq -r '.tag_name')" # github sometimes returns an empty list even tough there are releases if [ "$release" = "null" ]; then echo "uh-oh, latest for ${orga + "/" + repo} is not there, using HEAD" >&2