remote ssh: Fix asset embedding in cross-compilation (#19180)

This fixes the panic from the settings file not being embedded.


Release Notes:

- N/A

---------

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Thorsten Ball 2024-10-14 14:13:06 +02:00 committed by GitHub
parent f2337bbed1
commit 71a878aa39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -461,7 +461,7 @@ impl SshClientDelegate {
} else if let Some(triple) = platform.triple() {
smol::fs::create_dir_all("target/remote-server").await?;
self.update_status(Some("Installing cross.rs"), cx);
self.update_status(Some("Installing cross.rs for cross-compilation"), cx);
log::info!("installing cross");
run_cmd(Command::new("cargo").args([
"install",
@ -485,6 +485,8 @@ impl SshClientDelegate {
"build",
"--package",
"remote_server",
"--features",
"debug-embed",
"--target-dir",
"target/remote_server",
"--target",