pixi
pixi copied to clipboard
piping `pixi tree` to another process causes a panic
Checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
➜ RUST_BACKTRACE=1 pixi tree --platform linux-64 | less
thread 'main' panicked at library/std/src/io/stdio.rs:1118:9:
failed printing to stdout: Broken pipe (os error 32)
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: std::io::stdio::_print
3: pixi::cli::tree::print_package
4: pixi::cli::tree::print_dependency_leaf
5: pixi::cli::tree::print_dependency_tree
6: pixi::cli::execute_command::{{closure}}
7: tokio::runtime::park::CachedParkThread::block_on
8: pixi::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Issue description
Looks like not handling stdout closing properly
Expected behavior
No panic!!
interesting one! I will take a look!