Skip to content

Commit

Permalink
fix: render tasks in task files (#3666)
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Dec 18, 2024
1 parent a5112b3 commit fd9f6d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,15 @@ impl Config {
task.config_source = path.to_path_buf();
task.config_root = Some(config_root.to_path_buf());
}
Ok(tasks.into_values().collect())
Ok(tasks
.into_values()
.map(|mut t| {
if let Err(err) = t.render(config_root) {
warn!("rendering task: {err:?}");
}
t
})
.collect())
}

fn load_local_tasks(&self) -> Result<Vec<Task>> {
Expand Down

0 comments on commit fd9f6d1

Please sign in to comment.