build: the fyne command pinned in go.mod, bundled.go regenerated on Renovate's branches #24

Merged
dawid merged 1 commit from ci-regenerate into main 2026-11-15 16:59:27 +00:00
Owner

fyne bundle writes pkg/ui/bundled.go, but nothing pinned its version and nothing checked the file, so it drifted unnoticed. This pins the command and keeps the file up to date on Renovate's branches.

  • Pinned: fyne.io/tools is a tool of go.mod (v1.7.4), and the go:generate lines run go tool fyne. Renovate now updates the command like any other module. This adds about 20 indirect requirements to go.mod.
  • Regenerated: bundled.go as fyne bundle 1.7 writes it, with //go:embed instead of byte literals. Generating it from scratch gives the same file.
  • Checked: test.yml runs go generate ./pkg/ui and fails when bundled.go differs from what is committed.
  • Regenerated on Renovate's branches: the new regenerate.yml runs on pushes to renovate/**. When the branch changes fyne.io/tools, it commits the new bundled.go as regenerate-bot, using dawid/ci-actions' renovate-regenerate.

Tests and go vet pass with the headless tag, go mod tidy is clean, and bundled.go passes go vet on its own. The windowed UI wasn't built.

Merge after HomeLab #121 is deployed: it publishes the action's when input and gives the bot write access to this repository and its REGENERATE_TOKEN secret. Until then the Regenerate workflow fails.

`fyne bundle` writes `pkg/ui/bundled.go`, but nothing pinned its version and nothing checked the file, so it drifted unnoticed. This pins the command and keeps the file up to date on Renovate's branches. - **Pinned:** `fyne.io/tools` is a tool of `go.mod` (v1.7.4), and the `go:generate` lines run `go tool fyne`. Renovate now updates the command like any other module. This adds about 20 indirect requirements to `go.mod`. - **Regenerated:** `bundled.go` as fyne bundle 1.7 writes it, with `//go:embed` instead of byte literals. Generating it from scratch gives the same file. - **Checked:** `test.yml` runs `go generate ./pkg/ui` and fails when `bundled.go` differs from what is committed. - **Regenerated on Renovate's branches:** the new `regenerate.yml` runs on pushes to `renovate/**`. When the branch changes `fyne.io/tools`, it commits the new `bundled.go` as `regenerate-bot`, using dawid/ci-actions' `renovate-regenerate`. Tests and `go vet` pass with the `headless` tag, `go mod tidy` is clean, and `bundled.go` passes `go vet` on its own. The windowed UI wasn't built. Merge after HomeLab #121 is deployed: it publishes the action's `when` input and gives the bot write access to this repository and its `REGENERATE_TOKEN` secret. Until then the Regenerate workflow fails.
build: the fyne command pinned in go.mod, bundled.go regenerated on Renovate's branches
All checks were successful
Test / test (pull_request) Successful in 1m46s
ce9529c7aa
go generate runs go tool fyne, so Renovate updates the command that writes
pkg/ui/bundled.go. fyne bundle 1.7 writes it with go:embed. The tests check that
bundled.go is up to date, and regenerate.yml commits it on Renovate's branches
when fyne.io/tools changes, as regenerate-bot (dawid/ci-actions'
renovate-regenerate).
dawid merged commit 8eeb49845f into main 2026-11-15 16:59:27 +00:00
dawid deleted branch ci-regenerate 2026-11-15 16:59:28 +00:00
Sign in to join this conversation.
No reviewers
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
dawid/taschenrechner!24
No description provided.