From 8945037279efaa802c5a4d8c3bfaf2ad0393da7b Mon Sep 17 00:00:00 2001 From: Anastassios Nanos Date: Fri, 25 Sep 2026 11:53:54 +0300 Subject: [PATCH] fix(bundle): Pin the brig a bundle carries BRIG_VERSION defaulted to "latest", resolved at build time from brig's releases list, prereleases included. So a bundle tag did not decide its brig: rebuilding one later, or cutting one while a brig rc was newest, gave a different binary under the same bundle version. And on Linux this is the brig a user gets, since brig's install.sh installs the bundle's. It is pinned now, like every other component in the block, at v0.2.0, which is what v0.1.0-rc8 carries, so nothing changes today. The next bundle is cut by bumping it to the brig release it is for. "latest" still works for a local build. Signed-off-by: Anastassios Nanos --- scripts/build-bundle.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/build-bundle.sh b/scripts/build-bundle.sh index 19561e1..e3de84e 100755 --- a/scripts/build-bundle.sh +++ b/scripts/build-bundle.sh @@ -88,7 +88,10 @@ done # ---------------------------------------------------------------- pins # build-bundle.sh is the build authority: bumping a version here is the only place # it changes. install.sh does not build, so it carries none of these. -BRIG_VERSION="${BRIG_VERSION:-latest}" +# The brig release this bundle carries. On Linux it is the brig a user gets, +# so it is pinned like every other component. Bump it with the brig release a +# bundle is cut for. BRIG_VERSION=latest still works for a local build. +BRIG_VERSION="${BRIG_VERSION:-v0.2.0}" BRIG_REPO="${BRIG_REPO:-brig-sh/brig}" URUNC_REPO="${URUNC_REPO:-urunc-dev/urunc}" URUNC_BRANCH="${URUNC_BRANCH:-feat/unchanged_containers}" @@ -876,7 +879,8 @@ fi # ---- brig + brigd ------------------------------------------------------------ # brig is not built here: its own release is fetched and repackaged into the tree. -# "latest" resolves to brig's newest release (prereleases included). +# "latest", for a local build, resolves to brig's newest release (prereleases +# included). if [ "$VARIANT" != "stock" ] || [ "${BRIG_IN_STOCK:-true}" = "true" ]; then if [ "$BRIG_VERSION" = "latest" ]; then BRIG_VERSION="$(curl -sfL "https://api.github.com/repos/$BRIG_REPO/releases" \