Skip to content

Commit 3f2a8ee

Browse files
authored
Merge pull request #817 from StrongMonkey/fix-env-duplicate
Fix: Do not return full env map after downloading releases
2 parents 92308bd + 979908c commit 3f2a8ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pkg/repos/runtimes/golang/golang.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func getChecksum(ctx context.Context, rel *release, artifactName string) string
244244
return ""
245245
}
246246

247-
func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource string, env []string) (bool, []string, error) {
247+
func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource string, _ []string) (bool, []string, error) {
248248
if !tool.Source.IsGit() {
249249
return false, nil, nil
250250
}
@@ -264,7 +264,7 @@ func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource str
264264
return false, nil, nil
265265
}
266266

267-
return true, env, nil
267+
return true, nil, nil
268268
}
269269

270270
func (r *Runtime) Setup(ctx context.Context, _ types.Tool, dataRoot, toolSource string, env []string) ([]string, error) {

0 commit comments

Comments
 (0)