chore(edef/users/depot-scan): move to a subdir

Change-Id: If202b466aa0874048e89e0dc270ff14883510131
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1652
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
This commit is contained in:
edef 2020-08-05 01:52:12 +00:00
parent fcffacf8c9
commit 68ab0a0705
3 changed files with 1 additions and 3 deletions

View file

@ -8,5 +8,5 @@ pkgs.writeShellScriptBin "depot-scan" ''
attr="''${path//\//.}"
root="$(git rev-parse --show-toplevel)"
echo "scanning //$path" >&2
nix-instantiate -E "import ${./depot-scan-wrap.nix} {} $root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl ${./depot-scan.pl}) >&2
nix-instantiate -E "import ${./wrap.nix} $root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl ${./depot-scan.pl}) >&2
''

View file

@ -1,7 +1,5 @@
# this wraps import to override readFile and readDir to trace the files it touches
# technique inspired by lorri
{ ... }:
let
global = {