Skip to content

Commit bbdbcf9

Browse files
chore: add windows_arm64 support to yq (#1125)
* chore: add windows_arm64 support to yq * Update docs to fix tests
1 parent 64d2c74 commit bbdbcf9

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

docs/repositories.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/private/yq_toolchain.bzl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,17 @@ YQ_PLATFORMS = {
5252
"@platforms//cpu:x86_64",
5353
],
5454
),
55+
"windows_arm64": struct(
56+
compatible_with = [
57+
"@platforms//os:windows",
58+
"@platforms//cpu:aarch64",
59+
],
60+
),
5561
}
5662

5763
# Note: this is not the latest release, because it has significant breaking changes.
5864
# See https://github.com/bazel-contrib/bazel-lib/pull/421
59-
DEFAULT_YQ_VERSION = "4.45.1"
65+
DEFAULT_YQ_VERSION = "4.45.2"
6066

6167
# https://github.com/mikefarah/yq/releases
6268
#
@@ -67,6 +73,17 @@ DEFAULT_YQ_VERSION = "4.45.1"
6773
# Alternatively, you can compute them manually by running
6874
# `shasum -b -a 384 [downloaded file] | awk '{ print $1 }' | xxd -r -p | base64`
6975
YQ_VERSIONS = {
76+
"4.45.2": {
77+
"darwin_amd64": "sha384-TBsrUTy6n6qA2hiSlpnEN6iEDDz4Tiy++AxLOpeXU1aUaI6uIuEBx8hgPYWWuD8V",
78+
"darwin_arm64": "sha384-bnZ5TqsG5pcWB6gC87QKrBrjcKYmdOcSD7TpFVeCU6Nj7z5egeZzm4BH1FHbqo0e",
79+
"linux_amd64": "sha384-jEOdMXHPvRiaFXWRnSA5Mw41VCKkNPv42i35i9BiVxrAnfyl/3/Li/iyQyj16QIr",
80+
"linux_arm64": "sha384-4bEWn6fDQhIomb6Smzm8yw26RvqsjHh3PH/SogwWoLC9uJRoyQagY2PJZaYWxUDY",
81+
"linux_s390x": "sha384-9uU3CXqjUG/SuPiHPKIUqbOVyqx7JiVOtRzeFta9IBFkJyUB0pBBOYkoDppvrmzz",
82+
"linux_riscv64": "sha384-FWM1djpKjWctmhaInat/z/CcwQuiqLTeQcb0MMU5+sNiwMTuWyjvNlbwA4rRG3ZQ",
83+
"linux_ppc64le": "sha384-bB03rZ0ptRt2EuFnA9SvscPMe3gVJecBvxhzPbYe7wsfoHvzzYqWffCchZVxRg+9",
84+
"windows_amd64": "sha384-vG8R2+s/sD8DbeCM9H0xCy5JgtAOII7SLRx2g+ALtQZWW/q3XjXlzN2CKW/zU+EH",
85+
"windows_arm64": "sha384-XHgi894S4cQ2qgJx47cPu5vtb2MOXA2YZ7QgExODwNoIPhji5wXK2MrgMB+RI7gZ",
86+
},
7087
"4.45.1": {
7188
"darwin_amd64": "sha384-ZoEgzfCLmDk7eoKdJSoq/nny1iX3Cq9mMJ3gnPZ2ejhKMxSgHUQIa7MREToxYl6Z",
7289
"darwin_arm64": "sha384-nHYFqoarTzGba/XtpN8N3U0X9hMTg64Vn7XZ8yiF2cbJFdY3VWFVw80vsg/JXaOg",

tools/yq_mirror_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ chmod u+x extract-checksum.sh
2121

2222
# Extract the checksums and output a starlark map entry
2323
echo "\"$version\": {"
24-
platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,riscv64,ppc64le} windows_amd64)
24+
platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,riscv64,ppc64le} windows_{amd64,arm64})
2525
for release in ${platforms[@]}; do
2626
artifact=$release
2727
if [[ $release == windows* ]]; then

0 commit comments

Comments
 (0)