Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-12-19 | Remove --simulate-pure-eval | Silvan Mosberger | 1 | -36/+18 | |
2023-12-19 | lib.fileset.gitTracked: Support out-of-tree builds | Silvan Mosberger | 3 | -6/+86 | |
2023-12-19 | lib.fileset.fetchGit: Refactoring | Silvan Mosberger | 1 | -18/+24 | |
2023-12-11 | lib.fileset.gitTracked: Improve error when passing files | Silvan Mosberger | 2 | -0/+8 | |
2023-12-11 | lib.fileset: Refactor gitTracked and gitTrackedWith | Silvan Mosberger | 2 | -41/+48 | |
Introduce an internal function for them to share more behavior. This makes future changes easier. | |||||
2023-11-24 | Merge pull request #266362 from tweag/fileset.fileFilter-ext | Silvan Mosberger | 3 | -3/+46 | |
`lib.fileset.fileFilter`: Predicate attribute for file extension | |||||
2023-11-23 | lib.fileset.fileFilter: Predicate attribute for file extension | Silvan Mosberger | 3 | -3/+46 | |
2023-11-22 | lib.fileset: Document decision for strict existence checks | Silvan Mosberger | 1 | -0/+13 | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||||
2023-11-20 | lib.fileset.maybeMissing: init | Silvan Mosberger | 4 | -7/+69 | |
2023-11-19 | lib.fileset: Re-order to match reference overview | Silvan Mosberger | 1 | -200/+200 | |
2023-11-19 | lib.fileset: Add overview section to reference docs | Silvan Mosberger | 1 | -2/+44 | |
2023-11-19 | Merge pull request #268520 from tweag/fileset-minor-changes | Silvan Mosberger | 3 | -6/+11 | |
`lib.fileset`: Minor changes | |||||
2023-11-19 | lib.fileset: Minor changes | Silvan Mosberger | 3 | -6/+11 | |
- Make fromSource's missing file error message more consistent with others, and add a test for it - Indent some function arguments - Fix an internal type | |||||
2023-11-19 | lib.fileset: Move introduction section above the functions | Silvan Mosberger | 1 | -0/+49 | |
Previously the introductory section and the function listings were in different places. But now nixdoc supports having them together with https://github.com/nix-community/nixdoc/pull/70! | |||||
2023-11-16 | lib.fileset.gitTracked: Better error in pure eval | Silvan Mosberger | 2 | -18/+49 | |
2023-11-16 | lib.fileset.gitTrackedWith: Introduce recurseSubmodules parameter | Silvan Mosberger | 3 | -6/+53 | |
2023-11-16 | lib.fileset.gitTracked/gitTrackedWith: init | Silvan Mosberger | 3 | -1/+253 | |
A configuration parameter for gitTrackedWith will be introduced in the next commit | |||||
2023-11-15 | lib.fileset.fileFilter: Restrict second argument to paths | Silvan Mosberger | 4 | -31/+52 | |
While this change is backwards-incompatible, I think it's okay because: - The `fileFilter` function is not yet in a stable NixOS release, it was only merged about [a month ago](https://github.com/NixOS/nixpkgs/pull/257356). - All public uses of the function on GitHub only pass a path - Any `fileFilter pred fileset` can also be expressed as `intersection fileset (fileFilter pred path)` without loss of functionality. - This is furthermore pointed out in the new error message when a file set is passed | |||||
2023-11-15 | Merge pull request #267381 from tweag/fileset.fileFilter-path | Silvan Mosberger | 3 | -16/+54 | |
`fileset.fileFilter`: Don't run predicate unnecessarily | |||||
2023-11-14 | lib.fileset.fileFilter: Don't run predicate unnecessarily | Silvan Mosberger | 2 | -16/+43 | |
Before: nix-repl> fileset.trace (fileset.fileFilter (file: builtins.trace file.name false) ./default.nix) trace: README.md trace: benchmark.sh trace: default.nix trace: internal.nix trace: mock-splitRoot.nix trace: tests.sh After: nix-repl> fileset.trace (fileset.fileFilter (file: builtins.trace file.name false) ./default.nix) trace: default.nix | |||||
2023-11-14 | lib.fileset.fileFilter: Minor cleanups and more tests | Silvan Mosberger | 3 | -2/+13 | |
2023-11-13 | lib.fileset: Very minor changes | Silvan Mosberger | 2 | -4/+1 | |
2023-11-10 | Merge pull request #261732 from tweag/fileset.fromSource | Robert Hensing | 4 | -29/+398 | |
`lib.fileset.fromSource`: init | |||||
2023-11-09 | lib.fileset: Remove unused bindings | Silvan Mosberger | 1 | -3/+0 | |
Thanks nixd! | |||||
2023-11-08 | lib.fileset: Make error messages more uniform | Silvan Mosberger | 3 | -45/+47 | |
Just minor changes like: - Always using "X is a Y, but it should be Z" - "X is a path that does not exist" rather than "X does not exist" - Always using multi-line strings for errors - Always quoting string-like values and not quoting path-like values - But do quote filesystem roots. Even though they're paths, they might be very small, good to have quotes to know the start/end - Capitalise the first word - Distinguish root vs filesystem root more | |||||
2023-11-08 | lib.fileset: Remove nixdoc workaround | Silvan Mosberger | 1 | -9/+7 | |
This problem was fixed in https://github.com/nix-community/nixdoc/pull/81 which is included in version 2.5.1, which is now used in Nixpkgs | |||||
2023-11-08 | lib.fileset.toSource: Mention fromSource in errors | Silvan Mosberger | 4 | -3/+19 | |
2023-11-08 | lib.fileset.fromSource: init | Silvan Mosberger | 3 | -0/+337 | |
2023-11-08 | lib.fileset: Split out internal test helper | Silvan Mosberger | 1 | -26/+42 | |
2023-11-01 | lib.fileset: Add an additional argument in the design docs | Silvan Mosberger | 1 | -0/+3 | |
2023-11-01 | Merge pull request #259065 from tweag/fileset.difference | Silvan Mosberger | 3 | -0/+231 | |
`lib.fileset.difference`: init | |||||
2023-10-30 | lib.fileset.difference: init | Silvan Mosberger | 3 | -0/+231 | |
2023-10-30 | lib.fileset.toSource: Optimise unknown file type error | Silvan Mosberger | 1 | -27/+28 | |
Compared to the parent commit, this removes any detectable performance cost :) | |||||
2023-10-30 | lib.fileset.toSource: Improve error for unknown file types | Silvan Mosberger | 2 | -20/+33 | |
This does decrease performance unfortunately Benchmarking expression toSource { root = ./.; fileset = ./.; } Mean CPU time 0.103747 (σ = 0.012415) for 10 runs is 97.32181384964636% (σ = 16.34179537413021%) of the old value 0.106602 (σ = 0.0125571) Statistic .envs.elements (205920) is 105.5842% (+10891) of the old value 195029 Statistic .gc.totalBytes (20247696) is 101.7495% (+348160) of the old value 19899536 Statistic .nrThunks (134824) is 108.7878% (+10891) of the old value 123933 Statistic .symbols.number (996) is 100.1005% (+1) of the old value 995 Statistic .values.number (275238) is 104.1199% (+10891) of the old value 264347 | |||||
2023-10-26 | lib.fileset.toSource: Test with unknown file type | Silvan Mosberger | 1 | -0/+5 | |
Currently just throws the Nix error because unknown file types are not supported by the Nix store, but nothing catches this error earlier (yet, see next commit) | |||||
2023-10-26 | lib.fileset: Fix shellcheck warnings in tests | Silvan Mosberger | 1 | -4/+4 | |
2023-10-24 | lib.fileset.fileFilter: init | Silvan Mosberger | 3 | -0/+144 | |
2023-10-16 | lib.fileset: Improved error for unsupported coercion values | Silvan Mosberger | 2 | -4/+4 | |
2023-10-11 | Merge pull request #257356 from tweag/fileset.intersect | Silvan Mosberger | 4 | -8/+278 | |
`lib.fileset.intersection`: init | |||||
2023-10-11 | lib.fileset: Minor contributor doc adjustments | Silvan Mosberger | 1 | -2/+4 | |
Co-authored-by: Robert Hensing <robert@roberthensing.nl> | |||||
2023-10-11 | lib.fileset.intersection: init | Silvan Mosberger | 4 | -1/+257 | |
2023-10-09 | link to documentation on IFD in the Nix manual | Valentin Gagarin | 1 | -1/+1 | |
2023-10-04 | lib.fileset: Refactor for performance and future re-use | Silvan Mosberger | 1 | -5/+17 | |
2023-10-04 | Merge pull request #256417 from tweag/fileset.trace | Silvan Mosberger | 4 | -74/+502 | |
`lib.fileset.trace`, `lib.fileset.traceVal`: init | |||||
2023-10-04 | lib.fileset: Don't use ulimit for testing tracing | Silvan Mosberger | 1 | -8/+13 | |
2023-10-04 | lib.fileset: Refactor inotify testing to be reusable | Silvan Mosberger | 1 | -51/+87 | |
2023-10-04 | lib.fileset: Mention trace functions in the file set evaluation error | Silvan Mosberger | 3 | -4/+9 | |
2023-10-04 | lib.fileset.traceVal: init | Silvan Mosberger | 2 | -0/+68 | |
2023-10-04 | lib.fileset.trace: init | Silvan Mosberger | 2 | -0/+188 | |
2023-10-04 | lib.fileset: Make expectEqual check more | Silvan Mosberger | 1 | -4/+21 | |