mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 10:28:44 +00:00
fix(nix): refresh pnpm deps hash and accept spaced hash report format
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
||||
fi
|
||||
|
||||
cat "$build_log"
|
||||
expected_hash=$(sed -n 's/.*got: \(sha256-[A-Za-z0-9+/=]*\).*/\1/p' "$build_log" | tail -1)
|
||||
expected_hash=$(sed -n -e 's/.*got:[[:space:]]*\(sha256-[A-Za-z0-9+/=]*\).*/\1/p' -e 's/.*use[[:space:]]"\(sha256-[A-Za-z0-9+/=]*\)".*/\1/p' "$build_log" | tail -1)
|
||||
if [ -z "$expected_hash" ]; then
|
||||
echo "Nix build failed without reporting a replacement fixed-output hash."
|
||||
exit 1
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
fetcherVersion = 4;
|
||||
# Update with the hash reported by a failed fixed-output build:
|
||||
# nix build .#dbx-pnpm-deps 2>&1 | grep 'got:'
|
||||
hash = "sha256-8hA97KK+5J9w1YZpMEQuzFZnsXMuIQ0oSYySc3AVGcg=";
|
||||
hash = "sha256-Y2St1Pf2+/R+WHd8RIbwUHeCvmYsFAh07+8LVGhOjTo=";
|
||||
};
|
||||
|
||||
# ── Step 2: vendor Cargo dependencies ───────────────────────────── #
|
||||
|
||||
Reference in New Issue
Block a user