diff options
author | Vincent Ambo <mail@tazj.in> | 2021-04-12T19·49+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-04-12T21·55+0000 |
commit | a5591359702b62e4edd7fdbbd135475037aa6727 (patch) | |
tree | f4728bf352866c2e3555011b7029c7dfe65b00c4 /users/tazjin/nixos | |
parent | f59ab9aba506c1ed149f7093f5543ef021567ebc (diff) |
refactor(readTree): Initialise repo roots without recursing r/2496
Plumbs an additional internal argument through readTree that indicates whether the top-level of a tree is being read, and avoids recursing into itself in that case. This changes the externally visible behaviour of readTree (it is now expected to be called a level higher than previously). This allows us to reduce the amount of boilerplate needed to bootstrap the TVL repository (by not having to specify the individual folders that need to be read). For reasons related to an infinite recursion we could not (be bothered to) debug, the top-level `config` key (which held the attribute set passed on by readTree) has been removed. This is not needed, as it is already passed on by readTree ... Co-Authored-By: Florian Klink <flokli@flokli.de> Change-Id: Id6e39b57b2f5b3473c4b695a72dd1d01fcfb7a66 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2961 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/tazjin/nixos')
0 files changed, 0 insertions, 0 deletions