mirror of
https://github.com/0x5eal/luau-unzip.git
synced 2025-04-04 06:30:53 +01:00
chore(nix): support v0.6 lockfile parsing
This commit is contained in:
parent
db60b17f1a
commit
89f6713aea
1 changed files with 2 additions and 1 deletions
3
dev.nix
3
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("(@(?<ve
|
||||
rsion>[^ ]+))") | .version')
|
||||
if [[ "${exeName}" = "stylua" ]]; then
|
||||
# Special case for stylua which has versions that start with `v`
|
||||
version="v$version"
|
||||
|
|
Loading…
Add table
Reference in a new issue