We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53eaf6c commit cad5304Copy full SHA for cad5304
crates/polars-plan/build.rs
@@ -20,8 +20,12 @@ fn main() {
20
fn generate_schema_hash() {
21
let hash_hexstr = {
22
let mut digest = sha2::Sha256::new();
23
+ // Read as UTF-8 text and normalize CRLF to LF to make hashing
24
+ // invariant to Git EOL conversion on Windows.
25
+ let content = include_str!("dsl-schema-hashes.json");
26
+ let normalized = content.replace("\r\n", "\n");
27
digest
- .write_all(include_bytes!("dsl-schema-hashes.json"))
28
+ .write_all(normalized.as_bytes())
29
.expect("failed to hash the schema hashes file");
30
let hash = digest.finalize();
31
0 commit comments