Clarify repeated bootstrap for prepared sources

This commit is contained in:
2026-11-18 15:17:17 +00:00
parent a33522ddca
commit d88a0d7291

View File

@@ -122,6 +122,9 @@ type SecretsFromConfigOptions struct {
// LoadSecretsIntoEnvironmentFromConfig explicitly prepares a host File or
// SearchConfig main and loads its declared secrets directory before loading.
// Passing a previously prepared source reuses its captured main document and
// explicitly repeats bootstrap. Loading that source with Load or LoadLayered
// does not repeat bootstrap.
// NoSource and an optional search with no match return NoSource and an empty
// report. The returned source owns a reusable main-document snapshot and its
// host context; imports and environment lookup remain part of each later load.