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"