fix(tvix): Reuse now exposed depotfmt wrapper in crate2nix-check
This change exposes the already existing wrapper for treefmt/depotfmt that supports running it inside a sandbox. We now reuse it inside //tvix/crate2nix-check, where we previously duplicated the code. The check is now stricter and will also fail on changes, so I had to set the rust edition in the treefmt config. Change-Id: I000e52421258979c038ba6b1f1ff2db14e391b0c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12068 Tested-by: BuildkiteCI Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
7cfac04b7d
commit
13720d90bf
2 changed files with 10 additions and 10 deletions
|
|
@ -28,6 +28,7 @@ let
|
|||
|
||||
[formatter.rust]
|
||||
command = "${pkgs.rustfmt}/bin/rustfmt"
|
||||
options = ["--edition", "2021"]
|
||||
includes = [ "*.rs" ]
|
||||
excludes = [
|
||||
"users/tazjin/*",
|
||||
|
|
@ -53,10 +54,12 @@ let
|
|||
'';
|
||||
in
|
||||
depotfmt.overrideAttrs (_: {
|
||||
passthru.config = config;
|
||||
passthru.meta.ci.extraSteps.check = {
|
||||
label = "depot formatting check";
|
||||
command = check;
|
||||
alwaysRun = true;
|
||||
passthru = {
|
||||
inherit config check;
|
||||
meta.ci.extraSteps.check = {
|
||||
label = "depot formatting check";
|
||||
command = check;
|
||||
alwaysRun = true;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue