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.
This commit is contained in:
beeb
2025-12-15 15:06:00 +01:00
parent 6de1ab25d1
commit d9df457a0f
+2 -2
View File
@@ -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