diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-23 15:50:03 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-03-23 05:18:09 +0100 |
commit | edbaf11e94aa603085a5fa61aa760595c5392bca (patch) | |
tree | 401ea9c1f41b07d3a6a4557e82b6d108cf9b7c04 /pkgs/development/tools | |
parent | 1f3a1bf512caa20c0a6457a79d6ddd35a542a4db (diff) | |
download | nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar.gz nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar.bz2 nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar.lz nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar.xz nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.tar.zst nixlib-edbaf11e94aa603085a5fa61aa760595c5392bca.zip |
tree-sitter: unquote latest version in update script
Otherwise if a tag was found it would try to fetch `refs/tag/"v1.2.0"`. ``` fetching list of grammars checking the tree-sitter repo list against the grammars we know writing files to /etc/nixos/nixpkgs/pkgs/development/tools/parsing/tree-sitter/grammars Fetching latest release ("v1.2.1") of tree-sitter-agda … Initialized empty Git repository in /tmp/git-checkout-tmp-RU9DUpjM/tree-sitter-agda/.git/ fatal: couldn't find remote ref refs/tags/"v1.2.1" From https://github.com/tree-sitter/tree-sitter-agda * branch HEAD -> FETCH_HEAD fatal: Not a valid object name Unrecognized git object type: Unable to checkout refs/tags/"v1.2.1" from https://github.com/tree-sitter/tree-sitter-agda. ```
Diffstat (limited to 'pkgs/development/tools')
-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 96b5e47316c7..961a5e96e0b5 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -380,7 +380,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 -r '.tag_name')" + release="$(printf "%s" "$res" | ${jq}/bin/jq -r '.tag_name' | tr -d \")" # 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 |