Repository navigation
Upgrade fly to charm v2 - #9553
Merged
Merged
Conversation
tests broke again and figured out we need to set the initial window size so the bubbletea render actually prints stuff out. We also don't need to do the wrapper stuff on stdin anymore. Signed-off-by: Taylor Silva <[email protected]>
lots of fun hacky stdin stuff. I manually verified that raw os.stdin on windows works with fly hijack and other basic prompts, thus the FLY_TEST env check. Tests get the wrapped os.stdin to work around all the smartness in bubbletea, and outside tests we pass raw os.stdin so all the smartness can SHINE! So much work just to get these tests passing on Unix and Windows systems!! Signed-off-by: Taylor Silva <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Followed https://github.com/charmbracelet/bubbletea/blob/main/UPGRADE_GUIDE_V2.md
Functionally nothing changes. I had to update our stdin stuff again. On Unix-based systems, raw os.stdin works best. For Windows, we need to wrap os.stdin to get tests to pass, but in real-world scenarios we don't want to use the wrapped stdin. I've manually verified that fly on windows works, no funky terminal stuff happens. See the comment in
fly/commands/internal/interaction/stdin_windows.gofor more details.