Support update builds.

This commit is contained in:
Tom Alexander
2026-06-25 18:25:02 -04:00
parent 606832f505
commit d341228f5b
8 changed files with 481 additions and 224 deletions

View File

@@ -126,6 +126,13 @@ impl TargetConfig {
pub(crate) fn get_name(&'_ self) -> Result<&String, CustomError> {
Ok(&self.name)
}
/// Whether this job should update the flake inputs before the build.
///
/// This is used for proactively building updated packages so we can quickly update machines without waiting.
pub(crate) fn get_update(&self) -> bool {
self.update.unwrap_or(false)
}
}
fn hex_string(data: &[u8]) -> String {