Open zzztimbo opened 9 months ago
cc @vito
Looked into this briefly, my best guess is that it's an upstream issue, but don't have time to dig further right now - sorry.
I was curious how to get Go to panic in that way, so here's a repro: https://go.dev/play/p/VLumHZPF1uq
tl;dr you need to pass an out-of-order slice selection, but specifically using calculated values instead of static ones; if you do foo[3:1]
you'll get a compliation error instead complaining that 3 > 1
.
The calculation is happening here: https://github.com/charmbracelet/bubbles/blob/167e9067bc4eb2566334f33787cdfdf1bcc25124/viewport/viewport.go#L121-L123
FWIW I'm also having this issue running dagger from Codefresh, which has an automatic secret masking feature that is potentially dynamically rewriting stdout that apparently Buildkite does also https://github.com/buildkite/agent/pull/1109.
For anyone stuck on this, I believe the fix is to configure a window size. Try this:
stty columns 80 # this might be enough
stty rows 80 # if not, try this too
What is the issue?
Running the Dagger CLI using the --progress tty flag causes a panic in BuildKite. It would be nice to view the tty output in Buildkite. It works in Github Actions.
The error message seems similar to this issue: https://github.com/charmbracelet/bubbles/issues/20
Log output
Steps to reproduce
https://github.com/zzztimbo/dagger-buildkite-debug/blob/main/.buildkite/pipeline.yml#L11-L16
SDK version
N/A
OS version
N/A