From 652ddb649c60208dbba964f0ef919e36725c12c0 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Wed, 18 Nov 2026 15:17:17 +0000 Subject: [PATCH] Clarify repeated bootstrap for prepared sources --- secrets.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/secrets.go b/secrets.go index a49a979..3c78b2a 100644 --- a/secrets.go +++ b/secrets.go @@ -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.