Skip to content

Conversation

LukasHeimann
Copy link
Contributor

@LukasHeimann LukasHeimann commented Sep 30, 2025

Description

Various methods in golangBuild change the Stdout and Stderr of the golangBuildUtils to a BufferString.
Unfortunately, some of them never reset this, so when later actions call binaries, their outputs are not logged anymore.

This change implements resetting Stdout and Stderr to log.Writer() via defer, as done during initialization of the golangBuildUtils.

Checklist

  • Tests
  • Documentation
  • Inner source library needs updating

`golangBuild`'s `isMainPackage` changes the `Stdout` and `Stderr` of the `golangBuildUtils` to a BufferString.

Unfortunately, it never resets this, so when later actions call binaries, their outputs are not logged anymore. This change implements resetting `Stdout` and `Stderr` to `log.Writer()`, as done during initialization of the `golangBuildUtils`.
@LukasHeimann LukasHeimann requested a review from a team as a code owner September 30, 2025 09:30
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.

1 participant