From b0191649b758a861a80ef91ce19fc3946379669b Mon Sep 17 00:00:00 2001 From: Zadkiel AHARONIAN Date: Sat, 6 Dec 2025 17:42:55 +0100 Subject: [PATCH] fix: re-add CLI environment variables as subprocess plugin context Signed-off-by: Zadkiel AHARONIAN --- internal/plugin/loader.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/plugin/loader.go b/internal/plugin/loader.go index 2f051b99e..1e4f0567d 100644 --- a/internal/plugin/loader.go +++ b/internal/plugin/loader.go @@ -26,6 +26,7 @@ import ( "github.com/tetratelabs/wazero" "go.yaml.in/yaml/v3" + "helm.sh/helm/v4/pkg/cli" "helm.sh/helm/v4/pkg/helmpath" ) @@ -116,7 +117,9 @@ func newPrototypePluginManager() (*prototypePluginManager, error) { return &prototypePluginManager{ runtimes: map[string]Runtime{ - "subprocess": &RuntimeSubprocess{}, + "subprocess": &RuntimeSubprocess{ + EnvVars: cli.New().EnvVars(), + }, "extism/v1": &RuntimeExtismV1{ HostFunctions: map[string]extism.HostFunction{}, CompilationCache: cc,