The open source coding agent.
TypeScript
fix: nix hash update parsing (#18979)
Caleb Norton1238d1f61acc
diff --git a/.github/workflows/nix-hashes.yml b/.github/workflows/nix-hashes.ymlindex 9ebdb01882a..47385d20c64 100644--- a/.github/workflows/nix-hashes.yml+++ b/.github/workflows/nix-hashes.yml@@ -56,7 +56,7 @@ jobs:nix build ".#packages.${SYSTEM}.node_modules_updater" --no-link 2>&1 | tee "$BUILD_LOG" || true# Extract hash from build log with portability- HASH="$(grep -oE 'got:\s*sha256-[A-Za-z0-9+/=]+' "$BUILD_LOG" | tail -n1 || true)"+ HASH="$(grep -oP 'got:\s*\Ksha256-[A-Za-z0-9+/=]+' "$BUILD_LOG" | tail -n1 || true)"if [ -z "$HASH" ]; thenecho "::error::Failed to compute hash for ${SYSTEM}"diff --git a/nix/hashes.json b/nix/hashes.jsonindex 944cb2c5b68..20650074314 100644--- a/nix/hashes.json+++ b/nix/hashes.json@@ -1,8 +1,8 @@{"nodeModules": {- "x86_64-linux": "got:sha256-nMERinypUtIZGfLlAS5meYrvH5tTl2SkdG3GUguhOos=",- "aarch64-linux": "got:sha256-aQ42YVcjXSxpweA3e0SfJ8mnMWEqGeIOKg1cIhn8szA=",- "aarch64-darwin": "got:sha256-OGtUfhKWTRqi8bYcqkvfb1RZa3iS0DVy5bbRry47Og4=",- "x86_64-darwin": "got:sha256-kdzsr67cGduvGl+4UVdngiKNCaVw88WeMgx1ckVbG30="+ "x86_64-linux": "sha256-nMERinypUtIZGfLlAS5meYrvH5tTl2SkdG3GUguhOos=",+ "aarch64-linux": "sha256-aQ42YVcjXSxpweA3e0SfJ8mnMWEqGeIOKg1cIhn8szA=",+ "aarch64-darwin": "sha256-OGtUfhKWTRqi8bYcqkvfb1RZa3iS0DVy5bbRry47Og4=",+ "x86_64-darwin": "sha256-kdzsr67cGduvGl+4UVdngiKNCaVw88WeMgx1ckVbG30="}}