Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-16 | Merge branch 'master' of github.com:NixOS/nix into ↵ | Carlo Nucera | |
optional-derivation-output-storepath | |||
2020-07-16 | Merge remote-tracking branch 'origin/flakes' | Eelco Dolstra | |
2020-07-15 | Revert "LocalStore::addToStore(srcPath): Handle the flat case" | Eelco Dolstra | |
This reverts commit a2c27022e9afc394e08d34d349587c8903fc1a97. See addToStoreSlow(), we don't need to handle this case efficiently anymore. In fact, we can almost remove the method/hashAlgo arguments since the non-recursive and/or non-SHA256 are almost not used anymore. | |||
2020-07-14 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-13 | Remove 'accessor' from addToStore() | Eelco Dolstra | |
This is only used by hydra-queue-runner and it's better to implement it there. | |||
2020-07-11 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
optional-derivation-output-storepath | |||
2020-07-09 | LocalStore::addToStore(srcPath): Handle the flat case | Eelco Dolstra | |
This helps nix-prefetch-url when using a local store. | |||
2020-07-08 | Only store hash of fixed derivation output | Matthew Bauer | |
we don’t need a full storepath for a fixedoutput derivation. So just putting the ingestion method + the hash is sufficient. | |||
2020-07-08 | Cleanup | Eelco Dolstra | |
2020-07-08 | Make LocalStore::addToStore(srcPath) run in constant memory | Eelco Dolstra | |
This reduces memory consumption of nix-instantiate \ -E 'with import <nixpkgs> {}; runCommand "foo" { src = ./blender; } "echo foo"' \ --option nar-buffer-size 10000 (where ./blender is a 1.1 GiB tree) from 1716 to 36 MiB, while still ensuring that we don't do any write I/O for small source paths (up to 'nar-buffer-size' bytes). The downside is that large paths are now always written to a temporary location in the store, even if they produce an already valid store path. Thus, adding large paths might be slower and run out of disk space. ¯\_(ツ)_/¯ Of course, you can always restore the old behaviour by setting 'nar-buffer-size' to a very high value. | |||
2020-07-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-26 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-24 | Add a way to get all the outputs of a derivation with their label | regnat | |
Generalize `queryDerivationOutputNames` and `queryDerivationOutputs` by adding a `queryDerivationOutputMap` that returns the map `outputName=>outputPath` (not that this is not equivalent to merging the results of `queryDerivationOutputs` and `queryDerivationOutputNames` as sets don't preserve the order, so we would end up with an incorrect mapping). squash! Add a way to get all the outputs of a derivation with their label Rename StorePathMap to OutputPathMap | |||
2020-06-19 | More designated initializers | John Ericson | |
2020-06-19 | Merge remote-tracking branch 'me/no-stringly-typed-derivation-output' into ↵ | John Ericson | |
validPathInfo-ca-proper-datatype | |||
2020-06-18 | Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype | John Ericson | |
2020-06-18 | Merge branch 'no-hash-type-unknown' into validPathInfo-temp | John Ericson | |
2020-06-18 | Revert the `enum struct` change | John Ericson | |
Not a regular git revert as there have been many merges and things. | |||
2020-06-18 | Merge branch 'enum-class' into no-hash-type-unknown | John Ericson | |
2020-06-18 | Merge remote-tracking branch 'upstream/master' into enum-class | John Ericson | |
2020-06-17 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-17 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
no-stringly-typed-derivation-output | |||
2020-06-16 | Remove StorePath::clone() and related functions | Eelco Dolstra | |
2020-06-16 | StorePath: Rewrite in C++ | Eelco Dolstra | |
On nix-env -qa -f '<nixpkgs>', this reduces maximum RSS by 20970 KiB and runtime by 0.8%. This is mostly because we're not parsing the hash part as a hash anymore (just validating that it consists of base-32 characters). Also, replace storePathToHash() by StorePath::hashPart(). | |||
2020-06-15 | Remove trailing whitespace | Eelco Dolstra | |
2020-06-15 | Merge branch 'errors-phase-2' of https://github.com/bburdette/nix | Eelco Dolstra | |
2020-06-12 | Add Store::readDerivation() convenience function | Eelco Dolstra | |
2020-06-12 | Remove Store::queryDerivationOutputNames() | Eelco Dolstra | |
This function was used in only one place, where it could easily be replaced by readDerivation() since it's not performance-critical. (This function appears to have been modelled after queryDerivationOutputs(), which exists only to make the garbage collector faster.) | |||
2020-06-11 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-06-04 | Fix condition error and make test suite pass | Carlo Nucera | |
2020-06-04 | Flip boolean | John Ericson | |
Thanks Matt! | |||
2020-06-04 | Use some `std::optional::has_value` for clarity | John Ericson | |
2020-06-03 | No C++ designated initializers yet with Clang 7 | John Ericson | |
2020-06-03 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-03 | libutils/hash: remove default encoding | zimbatm | |
This will make it easier to reason about the hash encoding and switch to SRI everywhere where possible. | |||
2020-06-03 | Merge remote-tracking branch 'obsidian/no-hash-type-unknown' into ↵ | John Ericson | |
validPathInfo-ca-proper-datatype | |||
2020-06-02 | Apply suggestions from code review | John Ericson | |
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com> | |||
2020-06-02 | Remove `HashType::Unknown` | John Ericson | |
Instead, `Hash` uses `std::optional<HashType>`. In the future, we may also make `Hash` itself require a known hash type, encoraging people to use `std::optional<Hash>` instead. | |||
2020-06-02 | Change parseCa(Opt) to parseContentAddress(Opt) | Carlo Nucera | |
2020-06-02 | elide the 'ErrorInfo' in logError and logWarning calls | Ben Burdette | |
2020-06-02 | WIP | John Ericson | |
2020-06-01 | Merge branch 'no-stringly-typed-derivation-output' of ↵ | Carlo Nucera | |
github.com:Ericson2314/nix into validPathInfo-ca-proper-datatype | |||
2020-05-29 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-05-28 | Merge branch 'master' of github.com:NixOS/nix into enum-class | Carlo Nucera | |
2020-05-28 | Merge remote-tracking branch 'me/more-rust-ffi' into ↵ | John Ericson | |
no-stringly-typed-derivation-output | |||
2020-05-27 | Rename some variables named “recursive” to “method” | Matthew Bauer | |
This is much less confusing since recursive is no longer a boolean. | |||
2020-05-13 | formatting and a few minor changes | Ben Burdette | |
2020-05-13 | consistent capitalization | Ben Burdette | |
2020-05-13 | change status messages to info level | Ben Burdette | |
2020-05-12 | remove unused extra json fields | Ben Burdette | |