Skip to content

Split stdout and stderr when running go env#1574

Merged
imjasonh merged 1 commit intoko-build:mainfrom
DrJosh9000:patch-1
Oct 18, 2025
Merged

Split stdout and stderr when running go env#1574
imjasonh merged 1 commit intoko-build:mainfrom
DrJosh9000:patch-1

Conversation

@DrJosh9000
Copy link
Contributor

What

Prevent ko parsing the stderr from go env as containing env vars.

Why

go env can output things to stderr in normal operation, such as when using a GOCACHEPROG, e.g. https://github.com/bradfitz/go-tool-cache. Stderr shouldn't be parsed as part of the output of the command.

`go env` can output things to stderr in normal operation, such as when using a `GOCACHEPROG`, e.g. https://github.com/bradfitz/go-tool. Stderr shouldn't be parsed as part of the output of the command.
@imjasonh imjasonh enabled auto-merge (rebase) October 18, 2025 19:50
@imjasonh imjasonh merged commit c6af5ff into ko-build:main Oct 18, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants