fix(users/tazjin): rustfmt code with non-default settings
rustfmt only sometimes detects path-based nested config files (probably some kind of race?), so my users folder uses a separate formatting check for rustfmt to avoid flaky CI. Enough flakes around already ... Change-Id: Ifd862f9974f071b3a256643dd8e56c019116156a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5242 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
8b8c98380e
commit
0d0b43ed88
16 changed files with 348 additions and 421 deletions
16
users/tazjin/default.nix
Normal file
16
users/tazjin/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# //users/tazjin-specific CI configuration.
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
rustfmt = pkgs.writeShellScript "rustfmt-tazjin" ''
|
||||
${pkgs.fd}/bin/fd -e rs | \
|
||||
${pkgs.ripgrep}/bin/rg 'users/tazjin' | \
|
||||
xargs ${pkgs.rustfmt}/bin/rustfmt --check --config-path users/tazjin
|
||||
'';
|
||||
|
||||
in
|
||||
rustfmt.overrideAttrs (_: {
|
||||
meta.ci.extraSteps.rustfmt = {
|
||||
command = rustfmt;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue