Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-08-03 | `addToStore` in terms of `addToStoreFromDump` is not local-store-specific | John Ericson | |
2020-07-30 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-27 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
optional-derivation-output-storepath | |||
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-21 | Update chunkSize to the suggested value | Carlo Nucera | |
This was a suggested course of action in a review in one of our earlier commits, https://github.com/NixOS/nix/pull/3801#discussion_r457557079 | |||
2020-07-20 | Merge remote-tracking branch 'upstream/master' into from-dump-stream | John Ericson | |
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 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-16 | Fix bug in TeeSource | John Ericson | |
We use this to simplify `LocalStore::addToStoreFromDump`. Also, hope I fixed build error with old clang (used in Darwin CI). | |||
2020-07-16 | Merge remote-tracking branch 'origin/flakes' | Eelco Dolstra | |
2020-07-15 | Revert "LocalStore::addToStoreFromDump copy in chunks" | John Ericson | |
This reverts commit 592851fb67cd15807109d6f65fb81f6af89af966. We don't need this extra feature anymore | |||
2020-07-15 | Get rid of `LocalStore::addToStoreCommon` | John Ericson | |
I got it to just become `LocalStore::addToStoreFromDump`, cleanly taking a store and then doing nothing too fancy with it. `LocalStore::addToStore(...Path...)` is now just a simple wrapper with a bare-bones sinkToSource of the right dump command. | |||
2020-07-15 | Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type | Carlo Nucera | |
2020-07-15 | Merge remote-tracking branch 'obsidian/fix-add-to-star-narhash' into ↵ | John Ericson | |
from-dump-stream | |||
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 | Rename variable `nar` -> `dump` according to TODO | John Ericson | |
2020-07-14 | Fix localhost::addToStore(...Path...) | John Ericson | |
We were calculating the nar hash wrong when the file ingestion method was flat. I don't think there's anything we can do in that case but dump the file again, so that's what I do. As an optomization, we again could reuse the original dump for just the recursive and non-sha256 case, but I rather do that after this fix, and after my other PRs which deduplicate this code. | |||
2020-07-14 | LocalStore::addToStoreFromDump copy in chunks | John Ericson | |
Rather than copying byte-by-byte, we let the coroutine know how much data we would like it to send back to us. | |||
2020-07-14 | Dedup `LocalStore::addToStore*` | John Ericson | |
The downsides is that the coroutine has byte-by-byte loop transfer. Will fix that next. | |||
2020-07-14 | Crudely make `addToStoreFromDump` take `Source` not string | John Ericson | |
I just as little beyond the type as possible, so the implementation changes this enables can be reviewed separately. | |||
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-13 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-11 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
optional-derivation-output-storepath | |||
2020-07-10 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
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-07-03 | Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type | John Ericson | |
2020-07-02 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
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-23 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-06-22 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-06-19 | WIP: Make Hash always store a valid hash type | John Ericson | |
2020-06-19 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-06-19 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-06-19 | Merge remote-tracking branch 'upstream/master' into no-hash-type-unknown | John Ericson | |
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 | Add StorePathCAMap for querySubstitutablePathInfos | Matthew Bauer | |
I’m not 100% sure this is wanted since it kind of makes everything have to know about ca even if they don’t really want to. But it also make things easier in dealing with looking up ca. | |||
2020-06-17 | Make sure references are empty for store path replacing | Matthew Bauer | |
also copy info2 instead of casting |