From 979908c5e3c5d24200565962d0a0647fb1934cd3 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Thu, 22 Aug 2024 18:04:51 -0700 Subject: [PATCH] Fix: Do not return full env map after downloading releases Signed-off-by: Daishan Peng --- pkg/repos/runtimes/golang/golang.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/repos/runtimes/golang/golang.go b/pkg/repos/runtimes/golang/golang.go index 52e8fe0b..2601f521 100644 --- a/pkg/repos/runtimes/golang/golang.go +++ b/pkg/repos/runtimes/golang/golang.go @@ -244,7 +244,7 @@ func getChecksum(ctx context.Context, rel *release, artifactName string) string return "" } -func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource string, env []string) (bool, []string, error) { +func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource string, _ []string) (bool, []string, error) { if !tool.Source.IsGit() { return false, nil, nil } @@ -264,7 +264,7 @@ func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource str return false, nil, nil } - return true, env, nil + return true, nil, nil } func (r *Runtime) Setup(ctx context.Context, _ types.Tool, dataRoot, toolSource string, env []string) ([]string, error) {