From e08de98ae693d06802e6a279dccb6ac43fa1e186 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Wed, 16 Sep 2026 04:29:05 +0000 Subject: [PATCH] Upgrade ConfigKit to v0.3.0 --- docs/roadmap/implementation.md | 18 +++++++++++++++++- go.mod | 2 +- go.sum | 4 ++-- internal/config/party_test.go | 3 ++- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index ca332c8..c9d5526 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -108,7 +108,23 @@ Acceptance: ## Stage 2 — Adopt the released dependency and version diagnostics -Status: Not started +Status: Complete — 2026-09-16 + +Completion: Upgraded the normal module graph from ConfigKit v0.1.2 to the +released v0.3.0 without production-code migration. Party schema version `1` +remains invalid through Narratio's unsupported-version check, while a boolean +case preserves malformed-kind coverage. Existing credential, ownership, +inspection, provenance, digest, bootstrap, and maintained-example regressions +pass unchanged. + +Checks: + +- `GOWORK=off go mod tidy -diff` — pass. +- `GOWORK=off go mod verify` — pass. +- `GOWORK=off go test ./internal/config ./internal/app` — pass. +- `GOWORK=off go test -race ./internal/config ./internal/app` — pass. +- Targeted preserved-behavior regression selections in `internal/config` and + `internal/app` — pass. Purpose: Upgrade without altering the set of valid Narratio configurations. diff --git a/go.mod b/go.mod index 20fb89e..0efa79e 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module gitea.maximumdirect.net/eric/narratio go 1.26.0 require ( - gitea.maximumdirect.net/eric/ConfigKit v0.1.2 + gitea.maximumdirect.net/eric/ConfigKit v0.3.0 github.com/aws/aws-sdk-go-v2/config v1.32.17 github.com/aws/aws-sdk-go-v2/credentials v1.19.16 github.com/aws/aws-sdk-go-v2/service/s3 v1.101.0 diff --git a/go.sum b/go.sum index 9c06607..8c8de61 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -gitea.maximumdirect.net/eric/ConfigKit v0.1.2 h1:uZ5Mvf271SLItXEvUpQYfAvCOVYj9RaoG0auCcbCcSU= -gitea.maximumdirect.net/eric/ConfigKit v0.1.2/go.mod h1:tYWpsrbLyu05r8+1MapWp5fN6ZrX9I8hU2xEPedYmYk= +gitea.maximumdirect.net/eric/ConfigKit v0.3.0 h1:LgXEUjR0KsgwGBznOWa8FJTQ+iElctHtI1via5vKdu4= +gitea.maximumdirect.net/eric/ConfigKit v0.3.0/go.mod h1:tYWpsrbLyu05r8+1MapWp5fN6ZrX9I8hU2xEPedYmYk= github.com/aws/aws-sdk-go-v2 v1.41.7 h1:DWpAJt66FmnnaRIOT/8ASTucrvuDPZASqhhLey6tLY8= github.com/aws/aws-sdk-go-v2 v1.41.7/go.mod h1:4LAfZOPHNVNQEckOACQx60Y8pSRjIkNZQz1w92xpMJc= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.10 h1:gx1AwW1Iyk9Z9dD9F4akX5gnN3QZwUB20GGKH/I+Rho= diff --git a/internal/config/party_test.go b/internal/config/party_test.go index fb64cae..dda71f3 100644 --- a/internal/config/party_test.go +++ b/internal/config/party_test.go @@ -60,7 +60,8 @@ characters: want string }{ {name: "unsupported version", yaml: strings.Replace(valid, PartySchemaVersion, "narratio.party.v2", 1), want: "unsupported"}, - {name: "non-string version", yaml: strings.Replace(valid, PartySchemaVersion, "1", 1), want: "version.type"}, + {name: "unsupported integer version", yaml: strings.Replace(valid, PartySchemaVersion, "1", 1), want: "unsupported"}, + {name: "boolean version", yaml: strings.Replace(valid, PartySchemaVersion, "true", 1), want: "version.type"}, {name: "unknown top field", yaml: valid + "unknown: true\n", want: "decode.unknown_field"}, {name: "unknown nested field", yaml: strings.Replace(valid, " name: Eric\n", " name: Eric\n role: GM\n", 1), want: "decode.unknown_field"}, {name: "trailing document", yaml: valid + "---\ncharacters: {}\n", want: "yaml.multiple_documents"},