Loading lib/path/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ let # This is a workaround for https://github.com/NixOS/nix/issues/12361 which # was needed during the experimental phase of ca-derivations and should be # removed once the issue has been resolved. || match "[0-9a-z]{52}" (head components) != null; || components != [ ] && match "[0-9a-z]{52}" (head components) != null; in # No rec! Add dependencies on this file at the top. Loading lib/path/tests/unit.nix +6 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,12 @@ let expected = false; }; # Root path (empty path components list) testHasStorePathPrefixRoot = { expr = hasStorePathPrefix /.; expected = false; }; testHasStorePathPrefixExample1 = { expr = hasStorePathPrefix (storeDirPath + "/nvl9ic0pj1fpyln3zaqrf4cclbqdfn1j-foo/bar/baz"); expected = true; Loading Loading
lib/path/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ let # This is a workaround for https://github.com/NixOS/nix/issues/12361 which # was needed during the experimental phase of ca-derivations and should be # removed once the issue has been resolved. || match "[0-9a-z]{52}" (head components) != null; || components != [ ] && match "[0-9a-z]{52}" (head components) != null; in # No rec! Add dependencies on this file at the top. Loading
lib/path/tests/unit.nix +6 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,12 @@ let expected = false; }; # Root path (empty path components list) testHasStorePathPrefixRoot = { expr = hasStorePathPrefix /.; expected = false; }; testHasStorePathPrefixExample1 = { expr = hasStorePathPrefix (storeDirPath + "/nvl9ic0pj1fpyln3zaqrf4cclbqdfn1j-foo/bar/baz"); expected = true; Loading