Skip to content

Commit

Permalink
fix: make built-in aqua cache work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Nov 23, 2024
1 parent a289a03 commit e3e5a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ fn aqua_registries(d: &Path) -> Result<Vec<(String, String)>, std::io::Error> {
.strip_prefix(registry_dir())
.unwrap()
.to_string_lossy()
.to_string(),
.split(std::path::MAIN_SEPARATOR_STR)
.collect::<Vec<_>>()
.join("/"),
fs::read_to_string(&f).unwrap(),
));
}
Expand Down
1 change: 1 addition & 0 deletions src/aqua/aqua_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::path::PathBuf;
use url::Url;
use xx::regex;

#[allow(clippy::invisible_characters)]
pub static AQUA_STANDARD_REGISTRY_FILES: Lazy<HashMap<&'static str, &'static str>> =
Lazy::new(|| include!(concat!(env!("OUT_DIR"), "/aqua_standard_registry.rs")));

Expand Down

0 comments on commit e3e5a24

Please sign in to comment.