Cache source directories during configuration normalization

This commit is contained in:
2026-11-18 00:36:26 +00:00
parent 1c93aa0947
commit 76364a7b7e
4 changed files with 81 additions and 10 deletions

View File

@@ -8,11 +8,10 @@ import (
configkit "go.maximumdirect.net/configkit"
)
// documentLoadState keeps the spelling supplied by the user while resolver
// operations move map entries to their canonical keys. It is intentionally
// load-local: source-location handling consumes it during a later resolver
// pass and it never becomes runtime configuration state.
// documentLoadState keeps source-directory lookups and original map-key
// spellings local to one load. It never becomes runtime configuration state.
type documentLoadState struct {
sourceDirectories map[string]string
originalPaths map[string]configkit.Path
mainDirectory string
invocationDirectory string