Upgrade module pins to newest releases and make dependency checks authoritative
ci / build and test (pull_request) Successful in 1m4s
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.
This commit is contained in:
1 parent
f3f6b5dfb4
commit
c098c93ae9
8 files changed
+405
-97
No files matched your search
@@ -18,5 +18,5 @@ description = "Run formatting, vet, build, and tests (the same checks CI runs)"
|
||||
run = "./scripts/check.sh"
|
||||
|
||||
[tasks.deps]
|
||||
description = "Check that go.mod pins the newest available module versions"
|
||||
description = "Check go.mod pins against the newest observed module releases"
|
||||
run = "./scripts/check-deps.sh"
|
||||
Reference in new issue
Block a user