Cache source directories during configuration normalization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user