Skip to content

Commit b382263

Browse files
committed
fix: skip deploy when no targets because of missing or typo (refs #59)
1 parent 4fd97d7 commit b382263

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/yolk.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ impl Yolk {
183183
.context("Failed to expand targets config for egg")?;
184184

185185
if egg.config().enabled && !deployed {
186+
if mappings.is_empty() {
187+
tracing::warn!(
188+
"Egg {} has no deployment targets; skipping deploy",
189+
egg.name()
190+
);
191+
return Ok(false);
192+
}
186193
let mut deployer = Deployer::new();
187194
tracing::debug!("Deploying egg {}", egg.name());
188195

0 commit comments

Comments
 (0)