From 88a6bea6e802ce0d8190418b7b076ee12fdf1f47 Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 4 Aug 2020 17:57:01 -0700 Subject: [PATCH] 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 Tested-by: BuildkiteCI --- users/edef/depot-scan.nix | 4 ++-- users/edef/{sources.pl => depot-scan.pl} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename users/edef/{sources.pl => depot-scan.pl} (100%) diff --git a/users/edef/depot-scan.nix b/users/edef/depot-scan.nix index faa91855e..ce0f8d979 100644 --- a/users/edef/depot-scan.nix +++ b/users/edef/depot-scan.nix @@ -3,10 +3,10 @@ pkgs.writeShellScriptBin "depot-scan" '' set -euo pipefail - path=$(git rev-parse --show-prefix) + path="''${1:-$(git rev-parse --show-prefix)}" path="''${path%%/}" attr="''${path//\//.}" root="$(git rev-parse --show-toplevel)" 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 '' diff --git a/users/edef/sources.pl b/users/edef/depot-scan.pl similarity index 100% rename from users/edef/sources.pl rename to users/edef/depot-scan.pl