Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-11-17 | Cleanup | Eelco Dolstra | |
2020-11-05 | Allow substituting paths when building remotely using `ssh-ng://` | Maximilian Bosch | |
Until now, it was not possible to substitute missing paths from e.g. `https://cache.nixos.org` on a remote server when building on it using the new `ssh-ng` protocol. This is because every store implementation except legacy `ssh://` ignores the substitution flag passed to `Store::queryValidPaths` while the `legacy-ssh-store` substitutes the remote store using `cmdQueryValidPaths` when the remote store is opened with `nix-store --serve`. This patch slightly modifies the daemon protocol to allow passing an integer value suggesting whether to substitute missing paths during `wopQueryValidPaths`. To implement this on the daemon-side, the substitution logic from `nix-store --serve` has been moved into a protected method named `Store::substitutePaths` which gets currently called from `LocalStore::queryValidPaths` and `Store::queryValidPaths` if `maybeSubstitute` is `true`. Fixes #2770 | |||
2020-10-29 | Generalize extra-* settings | Eelco Dolstra | |
This removes the extra-substituters and extra-sandbox-paths settings and instead makes every array setting extensible by setting "extra-<name> = <value>" in the configuration file or passing "--<name> <value>" on the command line. | |||
2020-10-11 | Split out uds-remote-store.{cc.hh} | John Ericson | |
2020-09-21 | Move Callback into its own header | Eelco Dolstra | |
This gets rid of the inclusion of <future> in util.hh, cutting compilation time by ~20s (CPU time). Issue #4045. | |||
2020-09-16 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
remove-storetype-delegate-regStore | |||
2020-09-16 | Remove useless exception copy | Théophane Hufschmitt | |
Co-authored-by: Eelco Dolstra <edolstra@gmail.com> | |||
2020-09-16 | Properly filter the stores according to their declared uriSchemes | regnat | |
When opening a store, only try the stores whose `uriSchemes()` include the current one | |||
2020-09-16 | Separate store configs from the implems | regnat | |
Rework the `Store` hierarchy so that there's now one hierarchy for the store configs and one for the implementations (where each implementation extends the corresponding config). So a class hierarchy like ``` StoreConfig-------->Store | | v v SubStoreConfig----->SubStore | | v v SubSubStoreConfig-->SubSubStore ``` (with virtual inheritance to prevent DDD). The advantage of this architecture is that we can now introspect the configuration of a store without having to instantiate the store itself | |||
2020-09-16 | fixup! Separate the instantiation and initialisation of the stores | regnat | |
2020-09-16 | Separate the instantiation and initialisation of the stores | regnat | |
Add a new `init()` method to the `Store` class that is supposed to handle all the effectful initialisation needed to set-up the store. The constructor should remain side-effect free and just initialize the c++ data structure. The goal behind that is that we can create “dummy” instances of each store to query static properties about it (the parameters it accepts for example) | |||
2020-09-16 | Fix the registration of stores | regnat | |
2020-09-16 | Make the store plugins more introspectable | regnat | |
Directly register the store classes rather than a function to build an instance of them. This gives the possibility to introspect static members of the class or choose different ways of instantiating them. | |||
2020-09-15 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
remove-storetype-delegate-regStore | |||
2020-08-28 | Merge remote-tracking branch 'upstream/master' into single-ca-drv-build | John Ericson | |
2020-08-27 | Merge pull request #3434 from Ericson2314/derivation-header-include-order | Eelco Dolstra | |
Revise division of labor in deserialization of derivations | |||
2020-08-20 | Rename drv output querying functions, like master | John Ericson | |
- `queryDerivationOutputMapAssumeTotal` -> `queryPartialDerivationOutputMap` - `queryDerivationOutputMapAssumeTotal` -> `queryDerivationOutputMap | |||
2020-08-20 | Merge pull request #3859 from obsidiansystems/drv-outputs-map-allow-missing | Eelco Dolstra | |
`queryDerivationOutputMap` no longer assumes all outputs have a mapping | |||
2020-08-20 | Rename drv output querying functions | John Ericson | |
- `queryDerivationOutputMapAssumeTotal` -> `queryPartialDerivationOutputMap` - `queryDerivationOutputMapAssumeTotal` -> `queryDerivationOutputMap` | |||
2020-08-19 | Merge branch 'master' of github.com:NixOS/nix into ↵ | John Ericson | |
remove-storetype-delegate-regStore | |||
2020-08-18 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
derivation-header-include-order | |||
2020-08-14 | Merge remote-tracking branch 'upstream/master' into single-ca-drv-build | John Ericson | |
2020-08-14 | Merge pull request #3899 from obsidiansystems/make-narHash-not-optional | Eelco Dolstra | |
Make narHash in ValidPathInfo not optional | |||
2020-08-13 | Use `TeeSink` and `TeeSouce` in a few more places | John Ericson | |
2020-08-07 | Squashed get CA derivations building | John Ericson | |
2020-08-06 | Minimize the usage of `Hash::dummy` | John Ericson | |
2020-08-05 | Remove Hash::operator bool () | Carlo Nucera | |
Since the hash is not optional anymore | |||
2020-08-05 | Merge branch 'master' of github.com:NixOS/nix into make-narHash-not-optional | Carlo Nucera | |
2020-08-05 | Remove optionality in ValidPathInfo::narInfo | Carlo Nucera | |
2020-08-05 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
drv-outputs-map-allow-missing | |||
2020-08-05 | Merge remote-tracking branch 'upstream/master' into misc-ca | John Ericson | |
2020-08-04 | Organize and format code a bit | John Ericson | |
2020-08-04 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
drv-outputs-map-allow-missing | |||
2020-08-04 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-08-03 | `addToStore` in terms of `addToStoreFromDump` is not local-store-specific | John Ericson | |
2020-08-01 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
derivation-header-include-order | |||
2020-07-31 | Merge branch 'master' of github.com:NixOS/nix into drv-outputs-map-allow-missing | Carlo Nucera | |
2020-07-30 | Merge branch 'master' of github.com:NixOS/nix into better-ca-parse-errors | Carlo Nucera | |
2020-07-30 | Merge remote-tracking branch 'origin/master' into substitute-other-storedir | Matthew Bauer | |
2020-07-29 | Cleanup | Eelco Dolstra | |
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-24 | `queryDerivationOutputMap` no longer assumes all outputs have a mapping | John Ericson | |
This assumption is broken by CA derivations. Making a PR now to do the breaking daemon change as soon as possible (if it is already too late, we can bump protocol intead). | |||
2020-07-23 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-07-21 | Merge pull request #3736 from ↵ | Eelco Dolstra | |
obsidiansystems/allow-relative-paths-in-store-option Allow relative paths in --store option | |||
2020-07-21 | Change logic for deciding what is a relative path for the local store | John Ericson | |
The was Eelco's prefered logic, and it looks good to me! | |||
2020-07-21 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-07-20 | Correct bug, thoroughly document addToStoreSlow | Carlo Nucera | |
2020-07-20 | Apply suggestions from code review | John Ericson | |
Co-authored-by: Eelco Dolstra <edolstra@gmail.com> | |||
2020-07-17 | Remove StoreType abstraction and delegate regStore | Carlo Nucera | |
to each Store implementation. The generic regStore implementation will only be for the ambiguous shorthands, like "" and "auto". This also could get us close to simplifying the daemon command. | |||
2020-07-17 | Merge branch 'master' of github.com:NixOS/nix into ↵ | Carlo Nucera | |
allow-relative-paths-in-store-option |