Fix issue with glob pattern

This commit is contained in:
2026-03-22 22:02:13 -05:00
parent a0c1a4e006
commit 218a6306d4
2 changed files with 4 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -247,7 +247,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]]
name = "pallet"
version = "1.0.4"
version = "1.0.5"
dependencies = [
"clap",
"clap_complete",

View File

@@ -283,6 +283,8 @@ fn build(mode: &Option<String>) -> std::io::Result<()> {
child.wait()?;
std::fs::write(format!("target/{}/.build_hash", build_config.name), hash)?;
let stop = start.elapsed();
println!(
@@ -298,7 +300,7 @@ fn build(mode: &Option<String>) -> std::io::Result<()> {
fn hash_src_tree() -> std::io::Result<String> {
let mut hashes = String::new();
for entry in glob("src/").expect("a valid glob pattern") {
for entry in glob("src/**/*").expect("a valid glob pattern") {
if let Ok(file) = entry {
let text = std::fs::read_to_string(file)?;
let hash = sha256::digest(text);