kcl.mod stays in sync with go.mod via a Taskfile stamp step #18
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ginjiruu/toolbelt#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#14 — Spec: Per-package KCL config fragments — service-owned defaults (db, embeddednats, embeddedfga)
What to build
Fragment discovery needs no flag list — the app declares its fragments via KCL
import+kcl.mod— and the kcl.mod's reference to the toolbelt fragments cannot drift from the Go module. A Taskfile stamp step derives the toolbelt reference fromgo list -mand rewrites the toolbelt entry in the kcl.mod, so the fragments always resolve at the same revision as the Go module. For the example a static relative reference suffices today; this is the mechanism that keeps published pseudo-version consumers resolving fragments correctly.Acceptance criteria
go list -mand rewrites the kcl.mod toolbelt entry.Blocked by
Implemented, verified (go test green in root/tools/example, task check-kcl green), and reviewed via /code-review. Landed in commit
f3cbcd0on master.