Documentation
¶
Overview ¶
Package gocmd runs child processes — mostly the go toolchain — for walle and the Go GitHub Actions.
It is the one place the project's child-process environment is decided. Env holds the overrides every go invocation needs. Put such a setting here once and every build, vet, test and `go list` inherits it.
Every function takes a context so Ctrl-C (walle wires signal.NotifyContext) or a cancelled errgroup stops the child instead of orphaning it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Env = map[string]string{}
Env is the project-wide environment overlay applied to every child process. Empty by default; add entries such as "GOEXPERIMENT": "jsonv2" or "GOPRIVATE": "github.com/your-org/" here and nowhere else.
Functions ¶
func Output ¶
func Output(ctx context.Context, extra map[string]string, name string, args ...string) (string, error)
Output executes name with args and returns its stdout. Stderr streams to the parent so tool diagnostics stay visible.
Types ¶
This section is empty.