From edbaf11e94aa603085a5fa61aa760595c5392bca Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 23 Feb 2022 15:50:03 +0100 Subject: tree-sitter: unquote latest version in update script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. ``` --- 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 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 -- cgit 1.4.1 From 964b4a6bd2f7be1090bffb41237141836ed97078 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 23 Mar 2022 05:22:56 +0100 Subject: tree-sitter: update grammars --- .../tools/parsing/tree-sitter/grammars/tree-sitter-go.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json index 622f2863290c..49a04edbc37b 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json @@ -1,9 +1,9 @@ { "url": "https://github.com/tree-sitter/tree-sitter-go", - "rev": "0fa917a7022d1cd2e9b779a6a8fc5dc7fad69c75", - "date": "2022-01-06T10:54:10+01:00", - "path": "/nix/store/bw2hilbj37ys9lig2fzz58cvjy7nhn3l-tree-sitter-go", - "sha256": "0kgy4yyd0z8pydldnfwsfw2iwbhn4f43qxfhy94wvpwiwi74kfmg", + "rev": "07d722831382a043b16547b6d9202f3da07f3cb3", + "date": "2022-03-22T15:34:30+01:00", + "path": "/nix/store/9ay5gjwnip3jcmi096sw5fyi1kxqg1pk-tree-sitter-go", + "sha256": "0rc1p5jab08v1r81gzaz5xmxmbspl5i5zxba9immzax8ahzhhaxn", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, -- cgit 1.4.1