summaryrefslogtreecommitdiff
path: root/lib/path/tests (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib/path: properly handle /. in hasStorePathPrefixMikael Voss2025-04-021-0/+6
* lib/path: allow CA paths in hasStorePathPrefixMikael Voss2025-03-051-0/+10
* treewide: format all inactive Nix files•••After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH Silvan Mosberger2024-12-103-64/+99
* lib.path.hasStorePathPrefix: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Silvan Mosberger2023-12-131-1/+29
* lib.tests: build nix without flaky aws-sdk-cpp•••The aws-sdk-cpp tests are flaky. Since pull requests to staging cause nix to be rebuilt, this means that staging PRs end up getting false CI failures due to whatever is flaky in the AWS SDK tests. Since none of our CI needs to (or should be able to) contact AWS S3, let's just omit it all. Bonus: the tests build way faster. Adam Joseph2023-11-181-3/+6
* lib/path/tests: Fix test setup on darwin•••These statements are taken from the `lib/test/release.nix` tests, which previously also worked on darwin. Unblocks https://github.com/NixOS/nix/pull/8569 when backported Robert Hensing2023-08-111-1/+8
* Merge pull request #242695 from tweag/lib.path.subpath.components•••`lib.path.subpath.components`: initRobert Hensing2023-08-041-0/+13
|\
| * lib.path.subpath.components: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Silvan Mosberger2023-07-261-0/+13
* | lib.path.splitRoot: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Silvan Mosberger2023-07-261-1/+18
* | Merge pull request #238013 from tweag/lib.path.removePrefix•••`lib.path.removePrefix`: initRobert Hensing2023-07-191-1/+18
|\ \
| * | lib.path.removePrefix: initSilvan Mosberger2023-07-101-1/+18
* | | Merge pull request #244044 from tweag/lib-readme•••Create a Readme in `lib`Robert Hensing2023-07-191-2/+5
|\ \ \ | |_|/ |/| |
| * | lib/tests: Unify documentation of individual testable filesSilvan Mosberger2023-07-181-2/+5
* | | lib/path/tests/prop.sh: Add --show-traceRobert Hensing2023-06-261-1/+1
* | | lib/path/tests: Add --show-trace•••This should help troubleshoot errors. Fyi --eval is just a flag, not an option with a value. Robert Hensing2023-06-261-2/+3
| |/ |/|
* | lib.path.hasPrefix: initSilvan Mosberger2023-06-151-1/+18
|/
* lib.path.subpath.join: init•••This function can be used to safely join subpaths together Silvan Mosberger2023-02-131-0/+30
* Merge pull request #208887 from tweag/lib.path.append•••lib.path.append: initSilvan Mosberger2023-02-071-1/+39
|\
| * lib.path.append: init•••This function can be used to append strings to Nix path values in a safe way. Silvan Mosberger2023-01-181-1/+35
| * lib.path: Minor improvements•••- Use isValid when possible instead of subpathInvalidReason: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068714681 - Add documentation to function arguments - Use newlines for error messages: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1069737602 - Add short comments for the unit test groups: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1072913051 - Slight formatting improvement for laws: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068707955 Silvan Mosberger2023-01-181-0/+4
* | lib/path/tests: Fix property tests when "-n" is generated•••When "-n" is generated by the property tests, it causes `echo` to not output the string since it's interpreted as an option. Apparently there's no good way to print "-n" with `echo` [1], so switching to `printf` instead [1]: https://unix.stackexchange.com/questions/85846/how-can-i-print-n-with-echo Silvan Mosberger2023-01-101-1/+1
|/
* lib.path.subpath.normalise: add property testsSilvan Mosberger2023-01-034-0/+310
* lib.path.subpath.normalise: initSilvan Mosberger2023-01-031-0/+49
* lib.path.subpath.isValid: init•••The first path library function Silvan Mosberger2023-01-032-0/+103