feat(depot): Prevent imports from NIX_PATH within the depot

Provided without further comment.

Change-Id: I19d14530243c72d49b14526f769b964b06959db8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3500
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2021-09-08 18:28:19 +03:00 committed by tazjin
parent b1f4b530ec
commit 8b4e0dbf2e

View file

@ -60,6 +60,9 @@ let
args = depotArgs; args = depotArgs;
path = ./.; path = ./.;
filter = depotArgsFilter; filter = depotArgsFilter;
scopedArgs = {
__findFile = _: _: throw "Do not import from NIX_PATH in the depot!";
};
}; };
# To determine build targets, we walk through the depot tree and # To determine build targets, we walk through the depot tree and