Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-10 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-07-10 | Avoid a redundant hash | Eelco Dolstra | |
2020-07-10 | Factor out commonality between nix-prefetch-url and nix-store --add-fixed | Eelco Dolstra | |
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 | 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-08 | Fix 'got unknown message type 1 from Nix daemon' | Eelco Dolstra | |
Example: $ nix-build -E 'with import <nixpkgs> {}; runCommand "foo" { x = runCommand "bar" {} "exit 1"; } "echo foo; exit 1"' warning: unknown setting 'auto-allocate-uids' these 2 derivations will be built: /nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv /nix/store/k4fsvrjl7cp2xpz7927iv7g0dqj1zyhs-foo.drv warning: unknown setting 'auto-allocate-uids' building '/nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv'... error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------- nix-daemon builder for '/nix/store/v4fbdbhcdi949929a67g8farwf72zgam-bar.drv' failed with exit code 1 error: --- Error ------------------------------------------------------------------------------------------------------------------------------------------------------------------ nix-build got unknown message type 1 from Nix daemon | |||
2020-07-07 | exportReferencesGraph: Fix support for non-top-level store paths | Eelco Dolstra | |
Fixes #3471. | |||
2020-07-03 | Merge branch 'master' into add-trace | Ben Burdette | |
2020-07-03 | Shorten the path to the test root | regnat | |
Fix a socket length failure on the OSX builders | |||
2020-07-02 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-07-02 | Store subPath in SubstitutionGoal | Matthew Bauer | |
2020-07-02 | move showTrace to new loggerSettings | Ben Burdette | |
2020-07-02 | Try next when no ca exists and have different store dirs | Matthew Bauer | |
2020-07-01 | Cleanup | Eelco Dolstra | |
2020-07-01 | Merge branch 'remote-query-outputs' of https://github.com/tweag/nix | Eelco Dolstra | |
2020-06-30 | comments and cleanup | Ben Burdette | |
2020-06-30 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-06-30 | Merge branch 'master' into add-trace | Ben Burdette | |
2020-06-29 | showTrace flag in loggers | Ben Burdette | |
2020-06-29 | Merge pull request #3729 from obsidiansystems/simpler-hased-mirror | Eelco Dolstra | |
hashed-mirrors: Use parsed derivation output rather than reconstructing it | |||
2020-06-29 | Merge pull request #3749 from rodarima/master | Eelco Dolstra | |
Fall back to copyPath if link fails with EPERM | |||
2020-06-25 | Fix empty std::optional dereference in writeDerivation() | Eelco Dolstra | |
https://hydra.nixos.org/build/123017579 | |||
2020-06-25 | Fall back to copyPath if link fails with EPERM | Rodrigo | |
BeeGFS doesn't allow hard-links and returns EPERM, so we fall back to copyPath. See https://github.com/NixOS/nix/issues/3748 | |||
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-22 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-06-22 | hashed-mirrors: Use parsed derivation output rather than reconstructing it | John Ericson | |
Now the derivation outputs are parsed up front, we can avoid a reparse by doing it. Also, this just feels a bit better as the `output*` env vars are more of a `libnixexpr` interface than `libnixstore` interface: ultimately, it's the derivation outputs that decide whether the derivation is fixed-output. Yes, hashed mirrors might go away with #3689, but this bit of code would be moved rather than deleted, so it's worth doing a cleanup anyways I think. | |||
2020-06-19 | Update worker protocol to support sending storepath maps | Matthew Bauer | |
We need to also send the ca to daemon in addition to the path. | |||
2020-06-19 | Replace error message in getDerivationCA | Matthew Bauer | |
2020-06-19 | Return map of StorePaths in copyPaths | Matthew Bauer | |
This allows the caller to know what values were actually added to the store. | |||
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-19 | Remove unneeded constructor for `DerivationOutputHash` | John Ericson | |
2020-06-19 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
no-stringly-typed-derivation-output | |||
2020-06-19 | Use designated initializers for `DerivationOutputHash` | John Ericson | |
2020-06-19 | FileSystemHash -> DerivationOutputHash | John Ericson | |
2020-06-19 | Remove some `Base::` that crept in | John Ericson | |
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-18 | Rename content-addressed-paths into ca-derivations | regnat | |
See <https://github.com/NixOS/nix/pull/3710#issuecomment-645480333> | |||
2020-06-17 | Merge pull request #3713 from matthewbauer/cleanup-warnings | Eelco Dolstra | |
Cleanup class StorePath warning | |||
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 | |||
2020-06-17 | Add assert for replaced storePath | Matthew Bauer | |