Skip to content

Commit fe84f56

Browse files
authored
Merge pull request #1033 from epage/include
fix(build): Binary files stop build
2 parents be4d32a + 72059e4 commit fe84f56

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
name: Test
4646
needs: smoke
4747
strategy:
48+
fail-fast: false
4849
matrix:
4950
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
5051
rust: ["stable"]

.github/workflows/rust-next.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
test:
77
name: Test
88
strategy:
9+
fail-fast: false
910
matrix:
1011
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
1112
rust: ["stable", "beta"]

src/cobalt_model/template.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ fn load_partials_from_path(root: path::PathBuf) -> Result<Partials> {
2626
.expect("only UTF-8 characters supported in paths")
2727
.to_owned();
2828
trace!("Loading snippet `{}`", rel_path);
29-
let content = files::read_file(file_path)?;
30-
source.add(rel_path, content);
29+
match files::read_file(file_path) {
30+
Ok(content) => {
31+
source.add(rel_path, content);
32+
}
33+
Err(err) => {
34+
warn!("Ignoring snippet {}: {}", rel_path, err);
35+
}
36+
}
3137
}
3238
Ok(source)
3339
}

0 commit comments

Comments
 (0)