From d9df457a0f5556f986e456e1b35f446f76c28b0e Mon Sep 17 00:00:00 2001 From: beeb <703631+beeb@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:03:24 +0100 Subject: [PATCH] chore: fix update-svm-lists.sh helper script The latest version of the file that gets pulled has a prerelease version of solidity 0.8.31, which makes the compilation of `svm-rs-builds` fail with a duplicate constant definition error. This commit fixes the script by filtering out the prerelease versions with jq. --- pkgs/by-name/fo/foundry/update-svm-lists.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fo/foundry/update-svm-lists.sh b/pkgs/by-name/fo/foundry/update-svm-lists.sh index 7393f776b1af..a0a743bfee1a 100755 --- a/pkgs/by-name/fo/foundry/update-svm-lists.sh +++ b/pkgs/by-name/fo/foundry/update-svm-lists.sh @@ -40,8 +40,8 @@ for url in "${urls[@]}"; do # Extract filename from URL filename=$(extract_filename "$url") - # Download the file and fix line endings + # Download the file, filter out prereleases, and fix line endings echo "Fetching $url to $dir/$filename" - curl -sL "$url" -o "${dir}/${filename}" + curl -sL "$url" | jq 'del(.builds[] | select(has("prerelease")))' > "${dir}/${filename}" ensure_unix_format "${dir}/${filename}" done