diff --git a/lib/private/yq_toolchain.bzl b/lib/private/yq_toolchain.bzl index 4aee1e0c1..ea65593dd 100644 --- a/lib/private/yq_toolchain.bzl +++ b/lib/private/yq_toolchain.bzl @@ -34,6 +34,12 @@ YQ_PLATFORMS = { "@platforms//cpu:s390x", ], ), + "linux_riscv64": struct( + compatible_with = [ + "@platforms//os:linux", + "@platforms//cpu:riscv64", + ], + ), "linux_ppc64le": struct( compatible_with = [ "@platforms//os:linux", @@ -50,7 +56,7 @@ YQ_PLATFORMS = { # Note: this is not the latest release, because it has significant breaking changes. # See https://github.com/bazel-contrib/bazel-lib/pull/421 -DEFAULT_YQ_VERSION = "4.25.2" +DEFAULT_YQ_VERSION = "4.45.1" # https://github.com/mikefarah/yq/releases # @@ -61,6 +67,16 @@ DEFAULT_YQ_VERSION = "4.25.2" # Alternatively, you can compute them manually by running # `shasum -b -a 384 [downloaded file] | awk '{ print $1 }' | xxd -r -p | base64` YQ_VERSIONS = { + "4.45.1": { + "darwin_amd64": "sha384-ZoEgzfCLmDk7eoKdJSoq/nny1iX3Cq9mMJ3gnPZ2ejhKMxSgHUQIa7MREToxYl6Z", + "darwin_arm64": "sha384-nHYFqoarTzGba/XtpN8N3U0X9hMTg64Vn7XZ8yiF2cbJFdY3VWFVw80vsg/JXaOg", + "linux_amd64": "sha384-hkMtSRoq1GZKoH9C6OesKhgFLtkcm91wUD2W7L/xlAOS7jZbii23uEMHApo5r7Qs", + "linux_arm64": "sha384-4N6BWZ7ExxmnfqXGGTo7Szi73kJfbgMaUXW0FT10kcy2fNW0VbjBBAfClC14lES2", + "linux_s390x": "sha384-DRzz5Sb3JvwDVjQWGVto3Eh7a7tNQmwXZtMTQy+SidCYGQ2sLA3SQqqsQicNaD8A", + "linux_riscv64": "sha384-/4wDvlLP7f3lvEU/hrCa6wcGLzj8z1PYkWlULxIWHGn65Ai5xnI+Dp21VnM7iyi3", + "linux_ppc64le": "sha384-pnzDz7jn4b+1wOeasaEU6q5ASQhZw0Uz6sEehzpztqQglU6ynTkS8n4Nw/oqG5y9", + "windows_amd64": "sha384-P5c1L9KPhkLdByJ3G8IL3ouwNojoHSDDz6N851RRXxK1Y+ssYKPO/cbQzjQnpKvc", + }, "4.33.3": { "darwin_amd64": "sha384-IJhMHD71yq+OR8AHFPfZr3XVpFlG2ZAfcexDKojtSLcCMV1pw0X2jza4qFUZiKEt", "darwin_arm64": "sha384-euQkz1Bu/dFuJoRgG4xIh9BhP2RvOceTDPSY8EzSIM5xykbMkwDNhr1PtCcUF5ye", diff --git a/tools/yq_mirror_release.sh b/tools/yq_mirror_release.sh index 2b81f2f1a..fc8ebe2f3 100755 --- a/tools/yq_mirror_release.sh +++ b/tools/yq_mirror_release.sh @@ -21,7 +21,7 @@ chmod u+x extract-checksum.sh # Extract the checksums and output a starlark map entry echo "\"$version\": {" -platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,ppc64le} windows_amd64) +platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,riscv64,ppc64le} windows_amd64) for release in ${platforms[@]}; do artifact=$release if [[ $release == windows* ]]; then