From 89f6713aeae4b1bdf8e8b5ca52e898077aa64ea8 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 16 Feb 2025 17:07:34 +0530 Subject: [PATCH] chore(nix): support v0.6 lockfile parsing --- dev.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev.nix b/dev.nix index aa3af52..d712bd4 100644 --- a/dev.nix +++ b/dev.nix @@ -70,7 +70,8 @@ let #!/bin/bash set -euo pipefail - version=$(toml2json $src | jq -r '.graph."${package}" | to_entries[0].value.pkg_ref.version') + version=$(toml2json $src | jq -r '.graph | with_entries(select(.key | test("^${package}"))) | to_entries[0].key | capture("(@(?[^ ]+))") | .version') if [[ "${exeName}" = "stylua" ]]; then # Special case for stylua which has versions that start with `v` version="v$version"