Open rabin-io opened 1 day ago
Same here. It seems it was introduced in #901.
https://github.com/topgrade-rs/topgrade/commit/4455ecdf94350f41bde5ca9f5b3c206a7dda5d20
A current workaround is to disable run_in_tmux
.
Gentle ping on @wetfloo, could you please figure out the version of Tmux where this command was added, I think we need to do a check here
@SteveLauC Welp, my bad, this command actually never existed. It seems that I've messed up and it should be attach-session
instead of attach-client
This is how it can be fixed
diff --git a/src/steps/tmux.rs b/src/steps/tmux.rs
index 1914719..f699886 100644
--- a/src/steps/tmux.rs
+++ b/src/steps/tmux.rs
@@ -162,7 +162,7 @@ pub fn run_in_tmux(config: TmuxConfig) -> Result<()> {
println!("{}", t!("Topgrade launched in a new tmux session"));
return Ok(());
} else {
- tmux.build().args(["attach-client", "-t", &session]).exec()
+ tmux.build().args(["attach-session", "-t", &session]).exec()
}
}
@@ -170,7 +170,7 @@ pub fn run_in_tmux(config: TmuxConfig) -> Result<()> {
if is_inside_tmux {
tmux.build().args(["switch-client", "-t", &session]).exec()
} else {
- tmux.build().args(["attach-client", "-t", &session]).exec()
+ tmux.build().args(["attach-session", "-t", &session]).exec()
}
}
};
Erroneous Behavior
Expected Behavior
Just run
Steps to reproduce
Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your remote host
Configuration file (Optional)
Additional Details
topgrade -V
): 16.0.0Verbose Output (
topgrade -v
)