Commit Graph
3 Commits
Author SHA1 Message Date
software-maintainer c098c93ae9 Upgrade module pins to newest releases and make dependency checks authoritative
ci / build and test (pull_request) Successful in 1m4s
The require blocks were unchanged from the base manifest even though newer
releases are available for most modules. Pin every module to the newest
release observed on proxy.golang.org, add the checksums published by
sum.golang.org, and add the transitive modules the upgraded graph now needs
(bitset, clipperhouse/displaywidth, clipperhouse/stringish,
clipperhouse/uax29/v2, go.yaml.in/yaml/v3). charmbracelet/huh is a direct
import and is recorded as such.

Rewrite scripts/check-deps.sh so it never treats the local module cache as
evidence of what the newest release is. It uses `go list -m -u` when the proxy
is reachable and otherwise compares every go.mod pin with the dependency facts
prepared by the execution profile, validating the report source, freshness
status and query scope. If neither source is available it exits with status 2
instead of reporting success.

Add scripts/test-check-deps.sh, which covers stale, uncovered and unverifiable
pins without network access, and scripts/test-ci-workflow.sh, which checks that
the single Gitea Actions job still runs on pull requests and invokes the checks.
Both run from scripts/check.sh, so one pass verifies formatting, vet, build,
tests, the CI workflow and dependency freshness.

`go build ./...`, `go vet ./...`, `go test -cover ./...`, `go mod verify` and the
new scripts all pass in the sandbox.
2026-10-28 09:59:57 +00:00
software-maintainer 050936c6fd Make dependency checks offline-safe and guard the CI workflow with tests
scripts/check-deps.sh previously ran `go list -m all`, which fails with
"module lookup disabled by GOPROXY=off" whenever the module cache does not
hold the full module graph, even though the build only needs part of it.
Read the pins with `go mod edit -json` instead: the online branch asks the
module proxy about only the pinned modules, and the offline branch compares
those pins with the newest versions in the module cache. Neither path loads
the whole graph, and an empty cache is reported instead of failing.

Run the dependency check from the single check job that already gates pull
requests, so one action covers both the code/tests and dependency freshness.

Add internal/ci tests that parse .gitea/workflows/ci.yml, fail if the
workflow stops running on pull requests or stops invoking the check scripts,
and fail if those scripts are not executable. Document the two-step job and
the new mise tasks.
2026-10-28 08:57:59 +00:00
software-maintainer 22e4c96192 Upgrade Go toolchain pins and add Gitea Actions CI checks
Bump the go directive and mise tool pin to Go 1.27.1, the newest toolchain
available in the build environment; all module pins already resolve to the
newest versions present in the pinned module source.

Add scripts/check-deps.sh, which fails when go.mod pins an old module. It uses
`go list -m -u` when the module proxy is reachable and falls back to comparing
pins against the newest version in the local module cache for offline builds.
Expose it as the `mise run deps` task and document it.

Add .gitea/workflows/ci.yml, which runs on every pull request and every push to
main and invokes scripts/check.sh (gofmt, go mod verify, go vet, go build,
go test -cover). Also cover the Gitea client token/slug handling with unit
tests and document the CI workflow.

Add the mise check task so the CI checks can be run locally.
2026-10-28 07:51:21 +00:00