EngineVersion is read from the build, not stamped with -X #73

Merged
merge-queue merged 1 commit from PIPT-12-engine-version into main 2026-11-16 15:25:21 -08:00
Owner

frontend.EngineVersion is the fzt engine version an app was built against. The apps stamped it with -X from go list -m github.com/romaine-life/fzt. It's now read at start from the binary's build info, the same fzt module version, with no flag. The apps are moving onto pipeline-templates' suites (PIPT-12), which stamp only main's variables. Without this change fzt-terminal, fzt-automate and fzt-browser would report dev.

A new test builds a small program against the module and checks that it reports the fzt version go.mod requires; a test binary records no dependencies, so it can't check its own. All of fzt-frontend's tests pass.

Work package: https://openproject.home.romaine.life/wp/PIPT-12

`frontend.EngineVersion` is the fzt engine version an app was built against. The apps stamped it with `-X` from `go list -m github.com/romaine-life/fzt`. It's now read at start from the binary's build info, the same fzt module version, with no flag. The apps are moving onto pipeline-templates' suites (PIPT-12), which stamp only `main`'s variables. Without this change fzt-terminal, fzt-automate and fzt-browser would report `dev`. A new test builds a small program against the module and checks that it reports the fzt version `go.mod` requires; a test binary records no dependencies, so it can't check its own. All of fzt-frontend's tests pass. Work package: https://openproject.home.romaine.life/wp/PIPT-12
EngineVersion is read from the build, not stamped with -X
All checks were successful
CI / changes (pull_request) Successful in 15s
CI / manifests (pull_request) Has been skipped
CI / test (pull_request) Successful in 2m9s
CI / image (pull_request) Successful in 21s
merge-queue landed on main
a73fd95be3
The fzt engine version a binary was built against is the fzt module version the Go toolchain records in it, the same value the apps stamped from go list -m. Reading it here lets the apps build through pipeline-templates' suites, which stamp only main's variables.

https://openproject.home.romaine.life/wp/PIPT-12
merge-queue deleted branch PIPT-12-engine-version 2026-11-16 15:25:21 -08:00
nelson referenced this pull request from a commit 2026-11-16 15:27:36 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt-frontend!73
No description provided.