Commit 29e87ecd authored by Emily's avatar Emily
Browse files

apple-sdk: fix JSON handling in `lock-sdk-deps.sh`

This was omitting the SDK version from the structure, probably due
to refactors in response to my own reviews on the SDK rework PR. Oops!
parent 05cf0c40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ for package in "${packages[@]}"; do

    packageHash=$(nix --extra-experimental-features nix-command hash path "$package-$packageTag")

    pkgsjson="{\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}"
    pkgsjson="{\"$sdkVersion\": {\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}}"

    echo "   - Locking $package to version $packageVersion with hash '$packageHash'"
    jq --argjson pkg "$pkgsjson" -S '. * $pkg' "$lockfile" | sponge "$lockfile"