From e4a46c161c0250d8b465b5ada7355a838cfb9301 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 18 Mar 2021 17:58:37 +0100 Subject: [PATCH] fix compiler trying to read .drone.yml. --- compiler/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/src/main.rs b/compiler/src/main.rs index cb0cae3..d7d11b1 100644 --- a/compiler/src/main.rs +++ b/compiler/src/main.rs @@ -42,7 +42,12 @@ fn main() { } let path = Path::new(&source_dir).join(entry.file_name()); + if path.to_str().unwrap().contains(".drone.yml") { + continue; + } + eprintln!("Loading manifest {}", path.to_str().unwrap()); + let manifest: Manifest = serde_yaml::from_reader(File::open(path.clone()).unwrap()).unwrap(); let mut coll = SourceCollection::default();