1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-22 18:12:20 -04:00
nixpkgs/lib
polykernel de81edf6ef lib/strings: fix infinite recursion on concatStringsSep fallback
The current implementation of the concatStringsSep fallback references
concatStrings whcih is just a partial application of concatStringsSep,
forming a circular dependency. Although this will almost never be
encountered as (assuming the user does not explicitly trigger it):
  1. the or operator will short circuit both in lazy and strict
     evaluation
  2. this can only occur in Nix versions prior to 1.10
     which is not compatible with various nix operations as of 2.3.15

However it is still important if scopedImport is used or the builtins
have been overwritten. lib.foldl' is used instead of builtins.foldl'
as the foldl' primops was introduced in the same release as concatStringsSep.
2021-08-26 20:08:05 -04:00
..
systems
tests
asserts.nix
attrsets.nix
cli.nix
customisation.nix
debug.nix
default.nix
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix
generators.nix
kernel.nix
licenses.nix replace dead links 2021-08-26 23:14:50 +09:00
lists.nix
meta.nix
minver.nix
modules.nix
options.nix
sources.nix
strings-with-deps.nix
strings.nix lib/strings: fix infinite recursion on concatStringsSep fallback 2021-08-26 20:08:05 -04:00
trivial.nix
types.nix
versions.nix
zip-int-bits.nix