fix: make sure depot.path is named "depot" (again)
It is a reasonable enough assumption that depot.path will have the store path name "depot". In the past this used to be the case, since most people would checkout the repository as "depot" (funnily enough in the past, you wouldn't have been able to substitute some things if you used a different name). When we started to use cleanSource for depot.path the default name "source" would be assigned, breaking e. g. the assumptions of //web/todolist. We now set to "depot" statically. Fixes: b/162 Change-Id: I72fdb488e045bdaee80d1df0334b026060dcd116 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4381 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
3bf3f95105
commit
faca687dda
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ in readTree.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 = self.third_party.nixpkgs.lib.cleanSource ./.;
|
path = self.third_party.nixpkgs.lib.cleanSourceWith {
|
||||||
|
name = "depot";
|
||||||
|
src = ./.;
|
||||||
|
filter = self.third_party.nixpkgs.lib.cleanSourceFilter;
|
||||||
|
};
|
||||||
|
|
||||||
# List of all buildable targets, for CI purposes.
|
# List of all buildable targets, for CI purposes.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue