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 | |
| parent | 498a4ab408bfebf00fb85db128a26268bcda951f (diff) | |
| download | opencode-d839f70834e6e8a32dcc6e5ad4c6679813904413.tar.gz opencode-d839f70834e6e8a32dcc6e5ad4c6679813904413.zip | |
fix(nix): initialize hashes.json with per-system format (#8095)
| -rw-r--r-- | nix/hashes.json | 4 | ||||
| -rwxr-xr-x | nix/scripts/update-hashes.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nix/hashes.json b/nix/hashes.json index b85e146d7..4c953c5a8 100644 --- a/nix/hashes.json +++ b/nix/hashes.json @@ -1,6 +1,6 @@ { "nodeModules": { - "x86_64-linux": "sha256-8nur5CuUCSV/SzD16hNXVoIlKsiPBXDzCnoITK0IhC4=", - "aarch64-darwin": "sha256-vD1g9dviI2nMBTTPwI87sK01hSZ+cdnmb1V72AdJYq4=" + "x86_64-linux": "sha256-UCPTTk4b7d2bets7KgCeYBHWAUwUAPUyKm+xDYkSexE=", + "aarch64-darwin": "sha256-Y3o6lovahSWoG9un/l1qxu7hCmIlZXm2LxOLKNiPQfQ=" } } 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" |
