fix(users/edef/depot-scan): properly depend on pl script
Change-Id: I83c75ab75dae9c904e127ad6160c7641d4523e40 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1647 Reviewed-by: edef <edef@edef.eu> Tested-by: BuildkiteCI
This commit is contained in:
parent
84c401683c
commit
88a6bea6e8
2 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@
|
||||||
pkgs.writeShellScriptBin "depot-scan" ''
|
pkgs.writeShellScriptBin "depot-scan" ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
path=$(git rev-parse --show-prefix)
|
path="''${1:-$(git rev-parse --show-prefix)}"
|
||||||
path="''${path%%/}"
|
path="''${path%%/}"
|
||||||
attr="''${path//\//.}"
|
attr="''${path//\//.}"
|
||||||
root="$(git rev-parse --show-toplevel)"
|
root="$(git rev-parse --show-toplevel)"
|
||||||
echo "scanning //$path" >&2
|
echo "scanning //$path" >&2
|
||||||
nix-instantiate "$root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl sources.pl) >&2
|
nix-instantiate "$root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl ${./depot-scan.pl}) >&2
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue