From a7ba340219a2199202e878803ea94e4887913500 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sat, 17 Oct 2026 08:47:05 +1100 Subject: [PATCH] fix(e2e): build stack with release metadata --- e2e/stack.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e2e/stack.sh b/e2e/stack.sh index eb94ca116..522a1518e 100755 --- a/e2e/stack.sh +++ b/e2e/stack.sh @@ -74,10 +74,11 @@ prepare() { [ -f "$XDG_CONFIG_HOME/archie/config.toml" ] || cp "$repo/config.example.toml" "$XDG_CONFIG_HOME/archie/config.toml" sed "s#^database_url = .*#database_url = \"postgres://archie@127.0.0.1:$pgport/archie?sslmode=disable\"#" \ "$repo/deployments/dev.toml" >"$dir/dev.toml" - local s - for s in "${services[@]}"; do - (cd "$repo" && go build -o "$dir/bin/$s" "./cmd/$s") - done + local version + version=$(git -C "$repo" describe --tags --exact-match --match 'v[0-9]*' 2>/dev/null || true) + version=${version#v} + [ -n "$version" ] || version="dev+$(git -C "$repo" rev-parse --short=12 HEAD)" + task --dir "$repo" --force build BIN_DIR="$dir/bin" GATEWAY_VERSION="$version" RUNTIME_VERSION="$version" } # spawn NAME DIR CMD...: a detached session leader, so stop takes its children.