Skip to content

Commit 3becd44

Browse files
authored
chore: fix the nix-update-rusty-v8 script (#36647)
Fixes the script used to update the hashes of rusty-v8 release artifacts. The script targeted the wrong type of artifact which was the non-simdutf artifact, leading to hash mismatch errors. I changed it to instead target the simdutf artifact and it worked without any mismatches. Signed-off-by: techs-sus <92276908+techs-sus@users.noreply.github.com>
1 parent 9ad36f7 commit 3becd44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
function update() {
107107
sys=$1
108108
target=$2
109-
url="https://github.com/denoland/rusty_v8/releases/download/v${rustyV8Version}/librusty_v8_release_$target.a.gz"
109+
url="https://github.com/denoland/rusty_v8/releases/download/v${rustyV8Version}/librusty_v8_simdutf_release_$target.a.gz"
110110
hash=$(nix store prefetch-file --json "$url" | ${pkgs.lib.getExe pkgs.jq} -r '.hash')
111111
sed -i "s|\"$sys\" = \"sha256-[^\"]*\";|\"$sys\" = \"$hash\";|" flake.nix
112112
}

0 commit comments

Comments
 (0)