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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user