Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workaround pterm.SetDefaultOutput until it is fixed upstream to fix the message.UseBuffer #848

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

nacx
Copy link
Contributor

@nacx nacx commented Dec 12, 2024

Description

PR #824 upgraded pterm from v0.12.79 to v0.12.80, and that introduces the pterm bug pterm/pterm#701.
That causes the default writer to not be properly honored by the different pterm printers, breaking the Lula's message.UseBuffer.

This PR provides a workaround to explicitly set the writers until the issue is fixed upstream.

Related Issue

Fixes #849
Relates to pterm/pterm#701

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Signed-off-by: Ignasi Barrera <nacx@apache.org>
@nacx nacx requested a review from a team as a code owner December 12, 2024 13:25
Copy link
Collaborator

@meganwolf0 meganwolf0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Copy link
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch - appreciate the update!

@brandtkeller brandtkeller merged commit 749cdff into defenseunicorns:main Dec 12, 2024
10 checks passed
@brandtkeller brandtkeller added this to the v0.14.0 milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

message.UseBuffer is broken due to a pterm upstream bug
3 participants