refactor(depot): Import depot.path using lib.cleanSource

This imports a copy of the depot as `depot.path` without including the
.git directory and other stuff that isn't tracked in the tree.

Significantly reduces thie amount of data copied into the store.

Change-Id: I567c0f969d1cea81d121588548f6db627c8f3432
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3601
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-09-19 14:33:53 +03:00 committed by tazjin
parent 0e3858b5e5
commit 0939d4bf05

View file

@ -111,7 +111,7 @@ in fix(self: (readDepot {
}) // { }) // {
# Make the path to the depot available for things that might need it # Make the path to the depot available for things that might need it
# (e.g. NixOS module inclusions) # (e.g. NixOS module inclusions)
path = ./.; path = self.third_party.nixpkgs.lib.cleanSource ./.;
# List of all buildable targets, for CI purposes. # List of all buildable targets, for CI purposes.
# #