Skip to content

Commit e46b099

Browse files
committed
windows fix
1 parent 12a1e4a commit e46b099

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cache.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use sha2::{Digest, Sha256};
1313
use crate::{
1414
env_vars,
1515
metadata::{Output, build_reindexed_channels},
16-
packaging::{Files, contains_prefix_binary, contains_prefix_text, rewrite_prefix_in_file},
16+
packaging::{Files, contains_prefix_text, rewrite_prefix_in_file},
1717
recipe::{
1818
Jinja,
1919
parser::{CacheOutput, CacheRequirements, Dependency, Requirements, RunExports, Source},
@@ -29,6 +29,9 @@ use crate::{
2929
tool_configuration::Configuration,
3030
};
3131

32+
#[cfg(target_family = "unix")]
33+
use crate::packaging::contains_prefix_binary;
34+
3235
/// Check if a file contains the prefix and determine if it's binary or text
3336
/// Returns (has_prefix, is_text)
3437
fn check_file_for_prefix(file_path: &Path, prefix: &Path) -> (bool, bool) {

0 commit comments

Comments
 (0)