Skip to content

Commit 7ddcb7e

Browse files
committed
persuade dosu that this is a small PR
1 parent 9a2aa65 commit 7ddcb7e

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

internal/ext/process/gen.go

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,8 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
6969
if err != nil {
7070
return fmt.Errorf("go binary required to run go package %s", r.GoPkg)
7171
}
72-
cmd = exec.CommandContext(ctx, path, method)
73-
cmd.Args = []string{"go", "run", r.GoPkg}
74-
r.Env = append(r.Env, []string{
75-
"GO111MODULE",
76-
"GOROOT",
77-
"GOPATH",
78-
"GOPROXY",
79-
"GOPRIVATE",
80-
"GONOPROXY",
81-
"GONOSUMDB",
82-
"GOMODCACHE",
83-
"GOFLAGS",
84-
"GOCACHE",
85-
"GOENV",
86-
"HOME",
87-
}...)
72+
cmd = exec.CommandContext(ctx, path, "run", r.GoPkg, method)
73+
r.Env = append(r.Env, []string{"GO111MODULE", "GOROOT", "GOPATH", "GOPROXY", "GOPRIVATE", "GONOPROXY", "GONOSUMDB", "GOMODCACHE", "GOFLAGS", "GOCACHE", "GOENV", "HOME"}...)
8874
}
8975

9076
cmd.Stdin = bytes.NewReader(stdin)

0 commit comments

Comments
 (0)