Reorder tasks before debug print, rename GITBUILDCONF to FORGEBUILDCONF
This commit is contained in:
parent
ce6339a4f2
commit
5760794747
19
src/main.rs
19
src/main.rs
|
@ -52,20 +52,21 @@ fn main() -> Result<(), std::io::Error> {
|
|||
}
|
||||
};
|
||||
|
||||
for t in &tasks {
|
||||
t.debug("found_task");
|
||||
}
|
||||
|
||||
let (config_folder, ignored_tasks) = task::config(&basedir);
|
||||
set_var("GITBUILDCONF", &config_folder);
|
||||
context.insert("$i18n_config".to_string(), config_folder.to_str().unwrap().to_string());
|
||||
log::info("config", &context);
|
||||
|
||||
// Reorder tasks alphanumerically
|
||||
tasks.sort_unstable_by_key(|t| t.name.clone());
|
||||
// Remove duplicates, in case a task was called along
|
||||
// the corresponding source URL (so we'd be tempted to call the task twice)
|
||||
tasks.dedup_by_key(|t| t.name.clone());
|
||||
|
||||
for t in &tasks {
|
||||
t.debug("found_task");
|
||||
}
|
||||
|
||||
let (config_folder, ignored_tasks) = task::config(&basedir);
|
||||
set_var("FORGEBUILDCONF", &config_folder);
|
||||
context.insert("$i18n_config".to_string(), config_folder.to_str().unwrap().to_string());
|
||||
log::info("config", &context);
|
||||
|
||||
for task in &tasks {
|
||||
task.debug("start_proc");
|
||||
|
||||
|
|
Loading…
Reference in New Issue