Skip to content
Open
Changes from all commits
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
6 changes: 2 additions & 4 deletions crates/rattler/src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,8 @@ pub async fn link_package(
options: InstallOptions,
) -> Result<Vec<prefix_record::PathsEntry>, InstallError> {
// Determine the target prefix for linking
let target_prefix = options
.target_prefix
.as_deref()
.unwrap_or(target_dir)
let target_prefix = std::path::absolute(options.target_prefix.as_deref().unwrap_or(target_dir))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might have to use dunce to ensure paths are not in unc format on windows.

.map_err(InstallError::FailedToCreateTargetDirectory)?
.to_str()
.ok_or(InstallError::TargetPrefixIsNotUtf8)?
.to_owned();
Expand Down
Loading