context: copy symlinks as symlinks and improve error messages

This commit is contained in:
2026-07-17 10:12:46 +02:00
parent 2b27b7b06e
commit c4b59a4376
11 changed files with 382 additions and 54 deletions
+12 -2
View File
@@ -138,10 +138,20 @@ pub async fn build(
.command("apt-get")
.envs(env.clone())
.arg("update")
.status()?;
.status()
.map_err(|e| {
format!(
"Failed to run 'apt-get update' inside the build context: {}. \
If this is a local build, make sure apt-get is available and \
try executing with sudo.",
e
)
})?;
if !status.success() {
return Err(
"Could not execute apt-get update. If this is a local build, try executing with sudo."
"apt-get update failed inside the build context. \
If this is a local build, try executing with sudo, \
or re-run with RUST_LOG=debug for more details."
.into(),
);
}