Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-07-13 | Simplify the check for overrides on non-existent inputs | Eelco Dolstra | |
2022-07-13 | Fix typo in flake.cc | Ikko Ashimine | |
non-existant -> non-existent | |||
2022-07-12 | Merge pull request #6663 from Ma27/follows-invalid-input | Théophane Hufschmitt | |
flakes: throw an error if `follows`-declaration for an input is invalid | |||
2022-07-12 | Fix debug message | Eelco Dolstra | |
2022-07-12 | Move follows-check into its own function | Maximilian Bosch | |
2022-07-12 | Turn error for non-existant follows into a warning | Maximilian Bosch | |
2022-07-12 | flakes: throw an error if `follows`-declaration for an input is invalid | Maximilian Bosch | |
I recently got fairly confused why the following expression didn't have any effect { description = "Foobar"; inputs.sops-nix = { url = github:mic92/sops-nix; inputs.nixpkgs_22_05.follows = "nixpkgs"; }; } until I found out that the input was called `nixpkgs-22_05` (please note the dash vs. underscore). IMHO it's not a good idea to not throw an error in that case and probably leave end-users rather confused, so I implemented a small check for that which basically checks whether `follows`-declaration from overrides actually have corresponding inputs in the transitive flake. In fact this was done by accident already in our own test-suite where the removal of a `follows` was apparently forgotten[1]. Since the key of the `std::map` that holds the `overrides` is a vector and we have to find the last element of each vector (i.e. the override) this has to be done with a for loop in O(n) complexity with `n` being the total amount of overrides (which shouldn't be that large though). Please note that this doesn't work with nested expressions, i.e. inputs.fenix.inputs.nixpkgs.follows = "..."; which is a known problem[2]. For the expression demonstrated above, an error like this will be thrown: error: sops-nix has a `follows'-declaration for a non-existant input nixpkgs_22_05! [1] 2664a216e57169ec57d7f51be1b8383c1be83fd5 [2] https://github.com/NixOS/nix/issues/5790 | |||
2022-07-11 | Merge branch 'master' into ignore-try | Ben Burdette | |
2022-07-11 | move ignore-try to EvalSettings | Ben Burdette | |
2022-07-11 | use util.hh class instead of local | Ben Burdette | |
2022-07-11 | 'tryEval' not 'try clause' | Ben Burdette | |
2022-07-05 | builtins.traceVerbose: Post rebase fixes | Gytis Ivaskevicius | |
2022-07-05 | Add builtins.traceVerbose | Gytis Ivaskevicius | |
Co-Authored-By: Silvan Mosberger <contact@infinisil.com> Add builtins.traceVerbose tests | |||
2022-06-29 | src/libexpr/tests/primops.cc: Quote Nix expressions | Eelco Dolstra | |
Otherwise they don't survive reformatting, see the failure in https://github.com/NixOS/nix/pull/6721. | |||
2022-06-26 | fetchGit: document `shallow` argument | Guillaume Girol | |
2022-06-24 | Merge pull request #6698 from tweag/forbid-tilde-paths-in-pure-mode | Théophane Hufschmitt | |
Forbid the tilde expansion in pure eval mode | |||
2022-06-23 | eval-cache: cast rowId to correct type | Rick van Schijndel | |
Prevents errors when running with UBSan: /nix/store/j5vhrywqmz1ixwhsmmjjxa85fpwryzh0-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:353:4: runtime error: load of value 229, which is not a valid value for type 'AttrType' | |||
2022-06-21 | Forbid the tilde expansion in pure eval mode | Théophane Hufschmitt | |
Fix #6684 | |||
2022-06-13 | flake.cc: Make non-flake overrides sticky | Alexander Bantyev | |
Overrides for inputs with flake=false were non-sticky, since they changed the `original` in `flake.lock`. This fixes it, by using the same locked original for both flake and non-flake inputs. | |||
2022-06-10 | remove unused parameter | Ben Burdette | |
2022-06-02 | Shut up clang warnings | Eelco Dolstra | |
2022-06-02 | use Counter class to count tryEval levels | Ben Burdette | |
2022-06-02 | print message with exceptions in a try clause | Ben Burdette | |
2022-06-02 | ignore-try flag | Ben Burdette | |
2022-05-30 | Respect the outputSpecified attribute | Eelco Dolstra | |
E.g. 'nix build nixpkgs#libxml2.dev' will build the 'dev' output. | |||
2022-05-27 | Style fix | Eelco Dolstra | |
2022-05-26 | Remove pre-C++11 hackiness | Eelco Dolstra | |
2022-05-26 | Merge pull request #6570 from edolstra/eof-in-string | Eelco Dolstra | |
Handle EOFs in string literals correctly | |||
2022-05-25 | Merge branch 'master' into debug-exploratory-PR | Ben Burdette | |
2022-05-25 | back to ref<EvalState> in NixRepl | Ben Burdette | |
2022-05-25 | Handle EOFs in string literals correctly | Eelco Dolstra | |
We can't return a STR token without setting a valid StringToken, otherwise the parser will crash. Fixes #6562. | |||
2022-05-25 | Style tweaks | Eelco Dolstra | |
2022-05-22 | remove redundant 'debugMode' flag | Ben Burdette | |
2022-05-22 | comments | Ben Burdette | |
2022-05-22 | change state derefs | Ben Burdette | |
2022-05-20 | remove special tryEval behavior | Ben Burdette | |
2022-05-20 | debugRepl ftn pointer | Ben Burdette | |
2022-05-19 | 'debugMode' | Ben Burdette | |
2022-05-19 | de-const evalState exceptions | Ben Burdette | |
2022-05-19 | Merge branch 'debug-exploratory-PR' into debuggerHook-eval-arg | Ben Burdette | |
2022-05-19 | use an expr->StaticEnv table in evalState | Ben Burdette | |
2022-05-18 | Merge pull request #6544 from ncfavier/getFlake-no-write-lock-file | Théophane Hufschmitt | |
Do not attempt to write a lock file in builtins.getFlake | |||
2022-05-18 | Do not attempt to write a lock file in builtins.getFlake | Naïm Favier | |
Fixes https://github.com/NixOS/nix/issues/6541 | |||
2022-05-18 | primop_match: fix example letter case in document | zhujun | |
2022-05-16 | first whack at passing evalState as an arg to debuggerHook. | Ben Burdette | |
2022-05-16 | Make nix::eval_cache::int_t more idiomatic | Théophane Hufschmitt | |
Don’t explicitely give it a constructor, but use aggregate initialization instead (also prevents having an implicit coertion, which is probably good here) | |||
2022-05-16 | resolve redundant priority passing, wrap NixInt in eval-cache variant | Eli Kogan-Wang | |
2022-05-16 | Add int to eval-cache, bump eval cache schema version | Eli Kogan-Wang | |
2022-05-16 | Merge branch 'NixOS:master' into master | elikoga | |
2022-05-15 | fix thunk issue | Ben Burdette | |