Skip to content

Commit

Permalink
use slices.Clip
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jun 27, 2024
1 parent d33e263 commit 9986537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/go/internal/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"os"
"os/exec"
"reflect"
"slices"
"strings"
"sync"

Expand Down Expand Up @@ -211,7 +212,7 @@ func RunStdin(cmdline []string) {
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
env := cfg.OrigEnv[:len(cfg.OrigEnv):len(cfg.OrigEnv)]
env := slices.Clip(cfg.OrigEnv)
env = AppendPATH(env)
cmd.Env = env
StartSigHandlers()
Expand Down

0 comments on commit 9986537

Please sign in to comment.