diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-02-09 16:19:50 -0800 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-02-09 19:52:12 -0800 |
commit | b7b8e9574ff305e85be4e64e3d20286ce818fa58 (patch) | |
tree | 34202d5949d8471c5cf7889c8b197e47127e1cf8 | |
parent | f78a083dddec6e14eae842655f6f01a45ff2113a (diff) | |
download | nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar.gz nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar.bz2 nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar.lz nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar.xz nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.tar.zst nixpkgs-b7b8e9574ff305e85be4e64e3d20286ce818fa58.zip |
tree-sitter: fix update script's prefetch
It was including the quotes from jq into the tag name, which is incorrect
-rw-r--r-- | pkgs/development/tools/parsing/tree-sitter/update.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/update.nix b/pkgs/development/tools/parsing/tree-sitter/update.nix index 166154f7481..246574895e3 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 |