diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 95a3611..7fd6aff 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -51,7 +51,7 @@ jobs: with: distribution: goreleaser # Pinned so that re-running a tag uses the same goreleaser. Same - # pin as the snapshot step in test.yml. + # pin as the config check in test.yml. version: '2.20.3' args: release --clean env: diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index f517f3c..0c94b05 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,14 +1,15 @@ name: Test # Every branch push, and no pull_request trigger: branches are pushed -# directly, so each commit runs once. Tag pushes are left to release.yml. +# directly, so each commit runs once. Branch pushes lint and test but build +# no binaries; binaries are built only by release.yml, for tags on main. on: push: branches: ['**'] jobs: check: - name: Lint, test and build + name: Lint and test runs-on: ubuntu-latest steps: - name: Checkout @@ -60,13 +61,11 @@ jobs: - name: Test (race detector) run: go test -race -timeout 5m ./... - # The release build without publishing: runs the before hooks, - # cross-compiles every shipped target and packs the archives, so a - # config error or a missing archive file fails here, not on a tag. - # Same pin as release.yml. - - name: Release snapshot + # Validates .goreleaser.yaml without building anything, so a config + # error fails here rather than on a tag. Same pin as release.yml. + - name: GoReleaser config check uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: '2.20.3' - args: release --snapshot --clean + args: check diff --git a/CHANGELOG.md b/CHANGELOG.md index 175b5bb..9a0aa53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,16 +7,11 @@ version may break callers; such changes are listed under **Breaking**. ## [Unreleased] -### Changed +## [0.2.0] - 2026-11-30 -- The licence is now the European Union Public Licence v. 1.2 (EUPL-1.2), - replacing the GNU Affero General Public License v3.0. Releases up to and - including 0.2.0 stay available under AGPL-3.0. - -## [0.2.0] - 2026-11-29 - -The daemon is rewritten, and so are its install script and release process. -Read **Breaking** before you upgrade a 0.1 install. +The daemon is rewritten, and so are its install script and release process, +and it is now licensed under the EUPL-1.2. Read **Breaking** before you +upgrade a 0.1 install. ### Breaking @@ -125,6 +120,9 @@ Read **Breaking** before you upgrade a 0.1 install. ### Changed +- The licence is now the European Union Public Licence v. 1.2 (EUPL-1.2), + replacing the GNU Affero General Public License v3.0. Releases up to and + including 0.1.2 stay available under AGPL-3.0. - The HTTP server is Fiber v3 instead of Echo. ESC/POS commands come from an in-house package instead of justinmichaelvieira/escpos. - `printer.model` defaults to `tm-t88`: 512 dots, 42 Font A columns. On a @@ -173,8 +171,9 @@ Read **Breaking** before you upgrade a 0.1 install. - The module path is still the bare `uberbringer`, so build from a clone. - CI moved from `.github/workflows` to `.gitea/workflows`. `test.yml` runs once per branch push, and its gate is gofmt, goimports, - `go mod tidy -diff`, go vet, staticcheck, `go test -race -timeout 5m` and a - goreleaser snapshot of every shipped target. + `go mod tidy -diff`, go vet, staticcheck, `go test -race -timeout 5m` and + `goreleaser check`. It builds no binaries: they are built only for release + tags on main. - Releases: - Releases are cut only from `v*` tags whose commit is on main, with goreleaser pinned to 2.20.3. diff --git a/CLAUDE.md b/CLAUDE.md index 19adba9..ccae7d2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -56,8 +56,10 @@ Read the test output back from the file. The per-package `-timeout 5m` makes a hung test fail with every goroutine's stack. Without it, the tool's own time limit would kill the run first. staticcheck, goimports and govulncheck are pinned as tools in `go.mod`, so never install them separately. -`.gitea/workflows/test.yml` runs the same gate on every branch push, and -`security.yml` runs govulncheck weekly and on pushes to main. A change is done +`.gitea/workflows/test.yml` runs the same gate, with `goreleaser check` in +place of the snapshot, on every branch push. It builds no binaries: only +`release.yml` does, for `v*` tags on main. `security.yml` runs govulncheck +weekly and on pushes to main. A change is done when the gate passes and README and CHANGELOG.md say what changed. ## Go version diff --git a/Makefile b/Makefile index dbb6bf9..8585883 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build test lint fmt fmt-check vet tidy tidy-check vuln snapshot check run +.PHONY: build test lint fmt fmt-check vet tidy tidy-check vuln release-check snapshot check run # Without the leading v, as goreleaser's {{ .Version }} reports it. VERSION ?= $(patsubst v%,%,$(shell git describe --tags --always --dirty 2>/dev/null || echo dev)) @@ -37,14 +37,19 @@ tidy-check: vuln: go tool govulncheck ./... +# Validates .goreleaser.yaml without building anything. +release-check: + goreleaser check + # Cross-compiles every shipped target and packs the release archives into -# dist/, publishing nothing. +# dist/, publishing nothing. Run it after changing .goreleaser.yaml or +# packaging/; CI builds binaries only for release tags. snapshot: goreleaser release --snapshot --clean # The gate .gitea/workflows/test.yml runs, in the same order. # .gitea/workflows/security.yml runs vuln. -check: fmt-check tidy-check vet lint test snapshot +check: fmt-check tidy-check vet lint test release-check run: go run ./cmd/uberbringer --config config.toml diff --git a/README.md b/README.md index 353e377..943dab8 100644 --- a/README.md +++ b/README.md @@ -468,10 +468,12 @@ order: 3. `go vet`. 4. staticcheck. 5. `go test -race -timeout 5m`. -6. `snapshot`: `goreleaser release --snapshot --clean`. +6. `release-check`: `goreleaser check`, which validates the release config + without building. It needs goreleaser installed. govulncheck is not part of it; run -`make vuln`. `make` builds report the version without the leading `v`, e.g. +`make vuln`. `make snapshot` builds the release archives locally; run it after +changing `.goreleaser.yaml` or `packaging/`. `make` builds report the version without the leading `v`, e.g. `0.1.2-3-gabc1234`, as release binaries do. The linters are pinned as Go tools in `go.mod`, so `go tool staticcheck`, @@ -503,8 +505,9 @@ docs/ Design notes and feature plans CI runs on the Gitea runner from `.gitea/workflows/`. The repository has no `.github/` directory. -- `test.yml` runs the `make check` gate on every branch push. It does not run - on pull requests or tags. +- `test.yml` runs the `make check` gate on every branch push. It lints, tests + and validates the release config, but builds no binaries, and it does not + run on pull requests or tags. Binaries are built only by `release.yml`. - `security.yml` runs govulncheck on pushes to main and every Monday at 06:00 UTC. Scheduled runs use main's copy of the workflow. - `release.yml` builds and publishes a release with goreleaser 2.20.3 when a @@ -522,5 +525,5 @@ Copyright © 2025-2026 William Gill. Licensed under the European Union Public Licence v. 1.2 (EUPL-1.2). The full text is in [LICENSE.txt](LICENSE.txt), and translations into every official EU -language are equally valid. Releases up to and including 0.2.0 were published +language are equally valid. Releases up to and including 0.1.2 were published under the GNU Affero General Public License v3.0. diff --git a/docs/design.md b/docs/design.md index c7465d5..90b5cf8 100644 --- a/docs/design.md +++ b/docs/design.md @@ -1,6 +1,6 @@ # Überbringer: design -Status: released as 0.2.0 and checked on paper on the TM-T88IV. Next is the +Status: version 0.2.0, checked on paper on the TM-T88IV. Next is the formatters work in `docs/plans/formatters.md`. This page records why the daemon is shaped as it is. README.md describes how to use it.