Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
require golang envs
  • Loading branch information
frankli0324 committed Oct 30, 2025
commit 9a2aa651c81628e015764651b6ae8b5f5bbe59a3
14 changes: 14 additions & 0 deletions internal/ext/process/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
}
cmd = exec.CommandContext(ctx, path, method)
cmd.Args = []string{"go", "run", r.GoPkg}
r.Env = append(r.Env, []string{
"GO111MODULE",
"GOROOT",
"GOPATH",
"GOPROXY",
"GOPRIVATE",
"GONOPROXY",
"GONOSUMDB",
"GOMODCACHE",
"GOFLAGS",
"GOCACHE",
"GOENV",
"HOME",
}...)
}

cmd.Stdin = bytes.NewReader(stdin)
Expand Down
Loading