Test / Lint, test and build (push) Successful in 3m17s
Module
- The module path is now the bare "uberbringer"; imports read
uberbringer/internal/... The banner keeps the Gitea URL.
CI and releases
- Workflows move to .gitea/workflows: test.yml (every branch push:
gofmt, goimports, tidy, vet, staticcheck, race tests, goreleaser
snapshot), security.yml (govulncheck weekly and on main) and a hardened
release.yml (v* tags on main only, tags fetched, goreleaser pinned to
2.20.3). The broken labeler workflow is removed.
- go.mod pins toolchain go1.27.4, which fixes GO-2026-6859; workflows
check that the running Go matches it.
- .goreleaser.yaml: tidy check that never writes, reproducible file times,
prerelease: auto, a release header linking CHANGELOG.md, and archives
that ship CHANGELOG.md, the example config and the systemd unit.
- Makefile mirrors the CI gate; .dockerignore is an allowlist.
API and tests
- Every error answers {"error", "code", "details"} with a stable code from
server/errors.go; the framework's own error text is never sent.
- Panics and unexpected errors are logged and reported to Sentry once;
refusals are not logged as failures. /healthz sends no-store.
- TestRoutesConform requires auth, rate limiting and the body limit on
every /api/v1 route.
- Race-prone tests no longer rely on freed ports or sleeps; serve takes
an injected listener.
- The test config uses a placeholder secret instead of a real one.
Install and packaging
- install.sh resolves the latest release through the Gitea API, verifies
checksums, requests a certificate only when none exists, installs the
hardened packaging/uberbringer.service and writes the first token to a
0600 file instead of printing it. It is now executable in git.
Docs
- CLAUDE.md, CHANGELOG.md (0.2.0 with breaking changes and upgrade
steps), docs/design.md, and docs/plans/formatters.md for the planned
CP437 blocks, modules and ntfy printing. README updated throughout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
1.8 KiB
AMPL
54 lines
1.8 KiB
AMPL
module uberbringer
|
|
|
|
go 1.26.0
|
|
|
|
// The Go release CI tests, scans and builds releases with; the workflows
|
|
// read it from here. A local Go older than this switches to it, so local
|
|
// runs use the same standard library.
|
|
toolchain go1.27.4
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/getsentry/sentry-go v0.50.0
|
|
github.com/gofiber/fiber/v3 v3.7.0
|
|
github.com/golang-jwt/jwt/v5 v5.3.1
|
|
github.com/liamg/tml v0.7.1
|
|
github.com/spf13/cobra v1.10.2
|
|
go.jetify.com/typeid v1.3.0
|
|
golang.org/x/image v0.48.0
|
|
golang.org/x/sync v0.25.0
|
|
golang.org/x/text v0.44.0
|
|
)
|
|
|
|
require (
|
|
github.com/gofiber/schema v1.10.2 // indirect
|
|
github.com/gofiber/utils/v2 v2.6.5 // indirect
|
|
github.com/gofrs/uuid/v5 v5.5.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/klauspost/compress v1.20.5 // indirect
|
|
github.com/mattn/go-colorable v0.1.16 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/molecule-man/go-brrr v1.3.1 // indirect
|
|
github.com/philhofer/fwd v1.2.1 // indirect
|
|
github.com/spf13/pflag v1.1.0 // indirect
|
|
github.com/tinylib/msgp v1.6.5 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasthttp v1.80.0 // indirect
|
|
golang.org/x/crypto v0.59.0 // indirect
|
|
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect
|
|
golang.org/x/mod v0.43.0 // indirect
|
|
golang.org/x/net v0.63.0 // indirect
|
|
golang.org/x/sys v0.50.0 // indirect
|
|
golang.org/x/telemetry v0.0.0-20261116191925-e77a43154acb // indirect
|
|
golang.org/x/tools v0.53.0 // indirect
|
|
golang.org/x/vuln v1.10.0 // indirect
|
|
honnef.co/go/tools v0.8.2 // indirect
|
|
)
|
|
|
|
tool (
|
|
golang.org/x/tools/cmd/goimports
|
|
golang.org/x/vuln/cmd/govulncheck
|
|
honnef.co/go/tools/cmd/staticcheck
|
|
)
|