Skip to content

Commit efeb817

Browse files
committed
also error with symlinks for noarch packages
1 parent 8f429a3 commit efeb817

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/build.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::{path::PathBuf, vec};
44

55
use miette::{Context, IntoDiagnostic};
6-
use rattler_conda_types::{Channel, MatchSpec, package::PathsJson};
6+
use rattler_conda_types::{Channel, MatchSpec, Platform, package::PathsJson};
77

88
use crate::{
99
metadata::{Output, build_reindexed_channels},
@@ -152,15 +152,16 @@ pub async fn run_build(
152152

153153
// Check for binary prefix if configured
154154
if tool_configuration.error_prefix_in_binary {
155-
tracing::info!("Checking for host prefix in binary files...");
155+
tracing::info!("Checking for embedded prefix in binary files...");
156156
check_for_binary_prefix(&output, &paths_json)?;
157157
}
158158

159159
// Check for symlinks on Windows if not allowed
160-
if output.build_configuration.target_platform.is_windows()
160+
if (output.build_configuration.target_platform.is_windows()
161+
|| output.build_configuration.target_platform == Platform::NoArch)
161162
&& !tool_configuration.allow_symlinks_on_windows
162163
{
163-
tracing::info!("Checking for symlinks in Windows package...");
164+
tracing::info!("Checking for symlinks ...");
164165
check_for_symlinks_on_windows(&output, &paths_json)?;
165166
}
166167

0 commit comments

Comments
 (0)