Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/utils/build/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::os::unix::fs::PermissionsExt as _;
use std::path::{Path, PathBuf};

use crate::utils::fs::TempFile;
use anyhow::Result;
use anyhow::{Context as _, Result};
use itertools::Itertools as _;
use log::debug;
use symbolic::common::ByteView;
Expand Down Expand Up @@ -61,10 +61,12 @@ fn add_entries_to_zip(
let target_str = target.to_string_lossy();

// Create a symlink entry in the zip
zip.add_symlink(zip_path, &target_str, options)?;
zip.add_symlink(&zip_path, &target_str, options)
.with_context(|| format!("Failed to add symlink '{}' to zip archive", zip_path))?;
Comment thread
runningcode marked this conversation as resolved.
Outdated
} else {
// Handle regular files
zip.start_file(zip_path, options)?;
zip.start_file(&zip_path, options)
.with_context(|| format!("Failed to add file '{}' to zip archive", zip_path))?;
let file_byteview = ByteView::open(&entry_path)?;
zip.write_all(file_byteview.as_slice())?;
}
Expand Down
Loading