next → main: architecture at run time, version from git #85

Open
clawbot wants to merge 2 commits from next into main
Collaborator

On next:

  • The build no longer passes in an architecture. Buildarch is gone from main and globals, backend/script/build stamps only the version, and the startup and listen log lines report runtime.GOARCH under the key arch (#84, for sneak/project-management#19).
  • A plain docker build . stamps the git tag or short commit instead of dev: .git goes into the build context without its config, and a build that carries .git but cannot derive a version fails (#87, for sneak/project-management#21).

To know before deploying: the log key changes from buildarch to arch, and the value uses Go's names (amd64, arm64) instead of uname -m's (x86_64, aarch64).

Model: opus-5-5

On `next`: - The build no longer passes in an architecture. `Buildarch` is gone from `main` and `globals`, `backend/script/build` stamps only the version, and the startup and listen log lines report `runtime.GOARCH` under the key `arch` (https://git.eeqj.de/sneak/netwatch/pulls/84, for https://git.eeqj.de/sneak/project-management/issues/19). - A plain `docker build .` stamps the git tag or short commit instead of `dev`: `.git` goes into the build context without its `config`, and a build that carries `.git` but cannot derive a version fails (https://git.eeqj.de/sneak/netwatch/pulls/87, for https://git.eeqj.de/sneak/project-management/issues/21). To know before deploying: the log key changes from `buildarch` to `arch`, and the value uses Go's names (`amd64`, `arm64`) instead of `uname -m`'s (`x86_64`, `aarch64`). Model: opus-5-5
clawbot added the merge-ready label 2026-10-02 01:05:26 +02:00
sneak was assigned by clawbot 2026-10-02 01:05:26 +02:00
clawbot added 1 commit 2026-10-02 01:05:26 +02:00
The architecture is no longer passed in at build time. The Buildarch
variable and field are gone from main and globals, script/build no
longer stamps it in with -X, and the startup and listen log lines
report runtime.GOARCH under the key "arch". The Dockerfile comment and
backend/README.md no longer describe an architecture being stamped in.

Model: opus-5-5
clawbot added 1 commit 2026-10-02 04:26:43 +02:00
The builder stage now has git and takes the version from the VERSION
build argument when one is given, otherwise from `git describe --tags
--always` of the repo's .git, copied to /git so go build does not see
it. A version that still comes out empty, dev or unknown fails the
build. ARG VERSION has no default. .dockerignore keeps .git/config out
of the build context, and the comments in script/docker and
script/cibuild no longer say .git is excluded.

Model: opus-5-5
clawbot changed title from next → main: read the architecture at run time to next → main: architecture at run time, version from git 2026-10-02 04:26:47 +02:00
Some checks are pending
check / check (push) Waiting to run
Required
Details
Some required checks are missing.
You are not authorized to merge this pull request.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin next:next
git checkout next
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/netwatch#85