Repository navigation
Description
The same fetch, two consumers — the docs generator still pays the whole-project population
opencharly/spec#279 gave the corpus walk a files-only fetch
(refs.DownloadRepoFiles): a corpus/docs SOURCE reads the fetched repo's charly.yml and
its .agents/ trees and no submodule, so the fetch should certify exactly that.
opencharly/plugin-marketplace adopted it for the corpus generator. This generator is the
SIBLING consumer of the same walk and still calls the whole-project fetch.
Measured wiring at origin/main 044550c:
$ grep -n 'refs\.DownloadRepo' candy/plugin-docs/*.go
candy/plugin-docs/catalog.go:290: download: refs.DownloadRepo,
candy/plugin-docs/sources.go:152: return candywalk.CollectEntitiesRemote(cr, refs.DownloadRepo)refs.DownloadRepo runs populateSubmodules — git submodule update --init --depth 1
over EVERY declared gitlink — and fails the whole fetch when one cannot be fetched.
opencharly/spec#267 measured that population as a pure cost on this same walk (431
gitlinks, ~3 min cold, 272 MB transient, none of it read); opencharly/spec#279 measured
it as fatal for a repo that declares an unreachable one. The docs generator reads only the
tree too (charly.yml, candy/ dirs, schema/*.cue, .agents/), so the population buys
it nothing either.
Measured, cold, through the real generator
opencharly/opencharly:v2026.296.2037 (412 declared gitlinks), fresh CHARLY_REPO_CACHE,
charly marketplace generate on a corpus refs list pinning it — the same refs leaf this
generator's walk reaches:
# whole-project fetch (this generator's resolver today)
charly marketplace: collect entities: resolve @github.com/opencharly/opencharly:v2026.296.2037: downloading github.com/opencharly/opencharly:v2026.296.2037: populating submodules in /home/atrawog/.cache/charly/prefix279c/github.com/opencharly/[email protected]: exit status 128
fatal: Unable to create '/home/atrawog/.cache/charly/prefix279c/github.com/opencharly/[email protected]/.git/modules/charly/shallow.lock': File exists.
Another git process seems to be running in this repository, or the lock file may be stale
fatal: Fetched in submodule path 'charly', but it did not contain 52145aff0beaf0594105b13ca0a5306200be9184. Direct fetching of that commit failed.
generate rc=1
# files-only fetch (refs.DownloadRepoFiles, after spec#279)
charly: resolving github.com/opencharly/opencharly:v2026.296.2037 (2 resolved, 0 queued)
Downloading github.com/opencharly/opencharly:v2026.296.2037 (files only)...
generate rc=0Ask
Bump the github.com/opencharly/spec require to the release carrying
refs.DownloadRepoFiles and pass it as the resolver in BOTH places (walkRemote, and
catalog.go's repoResolver.download), exactly as plugin-marketplace did. Same
signature, same seam: candywalk.RemoteResolver is
func(repoPath, version string) (string, error), so no SDK change and no behavioural
change in what the generator reads.
Non-blocking for spec#279 — nothing in that change's correctness depends on this leg, and
the corpus-source leg landed without it.
Agent: charly-spec279
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity