Skip to content

Commit a21056b

Browse files
Yolean gle-qaclaude
andcommitted
bw 2026.9.0 as y-bw, Bitwarden's GPL CLI build
For Vaultwarden at opsv.yolean.se (checkit vault-v1). The bw-oss assets are the GPLv3 build; Bitwarden's other builds are under its commercial licence from the release after 2026.9. 2026.9.0, not 2026.9.1, which is under two weeks old. The assets mark only arm64 (bw-oss-linux-2026.9.0.zip, bw-oss-linux-arm64-2026.9.0.zip), so y-bin-download gets ${_arm64}, "-arm64" on arm64 and empty otherwise, and y-bin-download-next sets it per platform. y-bin-download-next recomputed all four checksums from the template and they equal Bitwarden's published digests. Checks: y-bw --version prints 2026.9.0 on linux/amd64 (with a test-only unzip stand-in, this host has no unzip); y-script-lint --fail=degrade bin/ reports no degradation, y-bw clean; yconverge/itest/test.sh passed against y-cluster's dockerhost (an uncommitted copy addressing the kwok port on the guest, and kubectl from the main checkout). Not run: e2e-cluster, which needs local docker and host ports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9027d68 commit a21056b

5 files changed

Lines changed: 38 additions & 0 deletions

File tree

‎bin/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ duckdb
6565
uv
6666
stern
6767
watchexec
68+
bw

‎bin/y-bin-download‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ osmac_() {
8282
esac
8383
}
8484

85+
# "-arm64" on arm64 and nothing on amd64, for names that mark only the non-default arch
86+
_arm64() {
87+
x=$(arch)
88+
case $x in
89+
arm64) echo '-arm64' ;;
90+
*) echo '' ;;
91+
esac
92+
}
93+
8594
# vendor-os part of rust style target triples, i.e. ${aarch}-${ostriple}
8695
ostriple() {
8796
os=$(os)
@@ -178,6 +187,7 @@ run() {
178187
Os=$(Os)
179188
arm=$(arm)
180189
xarm=$(xarm)
190+
_arm64=$(_arm64)
181191
eval $(to_eval $yaml $name)
182192
install "$name" "$version" "$url" "$sha256" "$archivetool" "$archivepath"
183193
}

‎bin/y-bin-download-next‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ ostriple=apple-darwin
4949
Os=Darwin
5050
arm=""
5151
xarm=x
52+
_arm64=""
5253
echo -n " darwin_amd64: " && checksum
5354

5455
os=darwin
@@ -63,6 +64,7 @@ ostriple=apple-darwin
6364
Os=Darwin
6465
arm=arm
6566
xarm=arm
67+
_arm64="-arm64"
6668
echo -n " darwin_arm64: " && checksum
6769

6870
os=linux
@@ -77,6 +79,7 @@ ostriple=unknown-linux-gnu
7779
Os=Linux
7880
arm=""
7981
xarm=x
82+
_arm64=""
8083
echo -n " linux_amd64: " && checksum
8184

8285
os=linux
@@ -91,4 +94,5 @@ ostriple=unknown-linux-gnu
9194
Os=Linux
9295
arm=arm
9396
xarm=arm
97+
_arm64="-arm64"
9498
echo -n " linux_arm64: " && checksum

‎bin/y-bin.optional.yaml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,18 @@ duckdb:
302302
archive:
303303
tool: zip
304304
path: duckdb
305+
306+
# Bitwarden's CLI, for Vaultwarden at opsv.yolean.se. The bw-oss build is GPLv3; Bitwarden's
307+
# other builds are under its commercial licence from the release after 2026.9.
308+
bw:
309+
version: 2026.9.0
310+
templates:
311+
download: https://github.com/bitwarden/clients/releases/download/cli-v${version}/bw-oss-${osmac}${_arm64}-${version}.zip
312+
sha256:
313+
darwin_amd64: 6d6ab08255d08c7492c288ec1d6a314fea52d9660ffb1cb7741db8cad548cb65
314+
darwin_arm64: fc378d79fefb36128d2b401d19649a88d036646eba6b21b2c305fe53528d2e96
315+
linux_amd64: b34fcaa0a8c96df0783e09ed6c9c22003497e5b429351c42127206b794c6b69b
316+
linux_arm64: b2da40ee84aa8794f9f7567e8fc71d5a0c02c6b2355c60c71c9df6334c5d33b8
317+
archive:
318+
tool: zip
319+
path: bw

‎bin/y-bw‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
[ -z "$DEBUG" ] || set -x
3+
set -e
4+
YBIN="$(dirname $0)"
5+
6+
version=$(y-bin-download $YBIN/y-bin.optional.yaml bw)
7+
8+
y-bw-v${version}-bin "$@" || exit $?

0 commit comments

Comments
 (0)