diff options
| author | Jérôme Benoit <[email protected]> | 2026-01-13 01:18:48 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 18:18:48 -0600 |
| commit | d839f70834e6e8a32dcc6e5ad4c6679813904413 (patch) | |
| tree | 5fbe6d4ac4f179b5249638a0ac22d3ffdc0f3599 /nix/scripts | |
| parent | 498a4ab408bfebf00fb85db128a26268bcda951f (diff) | |
| download | opencode-d839f70834e6e8a32dcc6e5ad4c6679813904413.tar.gz opencode-d839f70834e6e8a32dcc6e5ad4c6679813904413.zip | |
fix(nix): initialize hashes.json with per-system format (#8095)
Diffstat (limited to 'nix/scripts')
| -rwxr-xr-x | nix/scripts/update-hashes.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/scripts/update-hashes.sh b/nix/scripts/update-hashes.sh index 22c556363..1e294fe4f 100755 --- a/nix/scripts/update-hashes.sh +++ b/nix/scripts/update-hashes.sh @@ -10,7 +10,7 @@ HASH_FILE=${HASH_FILE:-$DEFAULT_HASH_FILE} if [ ! -f "$HASH_FILE" ]; then cat >"$HASH_FILE" <<EOF { - "nodeModules": "$DUMMY" + "nodeModules": {} } EOF fi @@ -111,7 +111,7 @@ fi write_node_modules_hash "$CORRECT_HASH" -jq -e --arg hash "$CORRECT_HASH" '.nodeModules == $hash' "$HASH_FILE" >/dev/null +jq -e --arg system "$SYSTEM" --arg hash "$CORRECT_HASH" '.nodeModules[$system] == $hash' "$HASH_FILE" >/dev/null echo "node_modules hash updated for ${SYSTEM}: $CORRECT_HASH" |
