summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-10-19v0.3.0v0.3.0v0.3.xMatthias Beyer
This commit marks the v0.3.0 release of butido. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-19Changelog for the v0.3.0 releaseMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-19Import Cargo.lock for the v0.3.0 releaseMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-19Ignore advisory from "ptree" dependenciesMatthias Beyer
Because we cannot release with "git" dependencies in Cargo.toml, we ignore the advisory for the v0.3.0 release. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Revert "Replace "ptree" with maintenance fork"Matthias Beyer
This reverts commit a73b2d0d04fddbfe69e0872b6856b112ebec6d71.
2021-10-19Remove unused fieldMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19cargo-deny: Ignore security advisories for nowMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Replace "ptree" with maintenance forkMatthias Beyer
Because ptree 0.3.2 dependends on crates that have security advisories (down the dependency chain), we depend on a fork of ptree now, which updates these dependencies. We hope that this resolves the advisories for us. This patch shall be reverted as soon as ptree 0.4.0 (with updated dependencies) is published. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Merge branch 'release-late-error'Matthias Beyer
2021-10-12Rewrite to be more idomaticMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-12Late error reporting in release commandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-30Fix CLI about text for "source download" subcommandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-29Merge branch 'source-path-do-not-contain-hash'Matthias Beyer
2021-09-29Do not include source hash in source file nameMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Merge branch 'received-errors-fmt'Matthias Beyer
2021-09-23Add missing license headerMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Add helper for displaying maps of errorsMatthias Beyer
This patch adds a helper trait to display maps from UUID -> Error. It is just introduced for convenience and less code duplication, the speed of execution is not relevant at all in this case, as if this code is executed, we're already handling errors and aborting the execution anyways. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Merge branch 'github-community'Matthias Beyer
2021-09-23Merge branch 'github-actions'Matthias Beyer
2021-09-23Change maintenance level of crateMatthias Beyer
Starting with 0.3.0, this crate will be in maintenance mode. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Add issue templateMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Rewrite PR templateMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Add COCMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Remove section on patchmailsMatthias Beyer
as we accept PRs now. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Add block action for fixup commitsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23actions: Enable on pull requestMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23actions: Update MSRV to 1.54.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-23Add github action for CIMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-09-17Merge branch 'fix-release'Matthias Beyer
2021-09-17Merge branch 'submit-from-commit'Matthias Beyer
2021-09-17Fix: Delete target path before copying file to itMatthias Beyer
This fixes a bug: If the target file existed, but was created by another user, the tokio::fs::copy() function was not able to overwrite it (only to empty the file). So with this patch, we remove the file before we copy a new file to the target location. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17Fix: Add more error context if release copy procedure failsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17List commit hash a submit was built from in the "db submit" outputMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17Add GitHash::with_id() to get GitHash object from DB with specific idMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Merge branch 'dependency-if'Matthias Beyer
2021-09-16Merge branch 'schedule-to-less-running-containers'Matthias Beyer
2021-09-16Clippy: Allow From<> over Into<> implementation hereMatthias Beyer
Because it makes logically more sense to implement Into<> here than implementing From<> for a foreign type (Vec<>). Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Fix clippy: Use BTreeMap instead of HashMapMatthias Beyer
clippy complained that we cannot have a derived PartialEq and a handwritten Hash implementation. HashMap does not implement Hash. After some research we found that BTreeMap implements Hash, so we can derive Hash if we use BTreeMap as a key-value type for the `env_eq` member. Logically they are the same and this reduces code size, so go for it. This has the nice benefit, that we do not need to implement PartialOrd and Ord either. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Refactor: Outsource condition-checking and parsing to helper fnMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Refactor getting package dependencies as helper fnMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Implement dependency-condition filteringMatthias Beyer
This patch adds the condition-filtering support in the DAG-building code for conditional dependencies. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add trait to match conditions of dependenciesMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Refactor: Do not use Package::get_self_packaged_dependences() helper fnMatthias Beyer
We need to refactor because we want, in the next step, add filters in the dependency-processing mechanism, where we filter out dependencies by their condition. Thus, using the Package::get_self_packaged_dependences() helper fn does not work anymore and we remove it with this patch. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add more sensible error messageMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add testcase with multiple dependencies specifiedMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add condition-matching against dataMatthias Beyer
This patch implements the matching of the condition(s) against the provided data. The patch includes tests for all three supported conditions. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add tests for DAG-building with conditional dependencyMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Impl From<&str> for ImageName if in testing codeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Impl Dependency::new_conditional() if in testing codeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Impl Condition::new() if in testing codeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>