Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-21 | parseContentAddressMethodPrefix: use string_view | Robert Hensing | |
Co-authored-by: John Ericson <git@JohnEricson.me> | |||
2020-09-21 | Move FramedSink next to FramedSource | Robert Hensing | |
2020-09-21 | wopAddToStore: Throw to clarify unused refs | Robert Hensing | |
Co-authored-by: John Ericson <git@JohnEricson.me> | |||
2020-09-21 | Refactor wopAddToStore to make wopAddTextToStore obsolete | Robert Hensing | |
2020-09-21 | Overhaul wopAddToStore | Robert Hensing | |
2020-09-17 | Move FramedSource and FramedSink, extract withFramedSink | Robert Hensing | |
2020-09-17 | Add ContentAddressMethod and parse/render it | Robert Hensing | |
2020-09-17 | Add Source.drainInto(Sink) | Robert Hensing | |
2020-09-17 | Remove redundant import | Robert Hensing | |
2020-09-17 | Typo | Robert Hensing | |
2020-09-17 | Merge pull request #3829 from obsidiansystems/remove-storetype-delegate-regStore | Eelco Dolstra | |
Remove storetype delegate reg store -- contains #3736 | |||
2020-09-17 | Merge pull request #4027 from tweag/fix-gc-of-ca-derivations | Eelco Dolstra | |
Fix garbage collection of CA derivations | |||
2020-09-17 | Merge pull request #4025 from NixOS/remove-corepkgs-config | Eelco Dolstra | |
Remove corepkgs/config.nix | |||
2020-09-17 | Fix garbage collection of CA derivations | regnat | |
Fix #4026 | |||
2020-09-17 | Remove corepkgs/config.nix | Eelco Dolstra | |
This isn't used anywhere except in the configure script of the Perl bindings. I've changed the latter to use the C++ API's Settings object at runtime. | |||
2020-09-17 | Remove corepkgs/unpack-channel.nix | Eelco Dolstra | |
2020-09-17 | Remove corepkgs/derivation.nix | Eelco Dolstra | |
2020-09-16 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
remove-storetype-delegate-regStore | |||
2020-09-16 | Merge branch 'document-store-options' of https://github.com/tweag/nix | Eelco Dolstra | |
2020-09-16 | Fix doc generation | Eelco Dolstra | |
2020-09-16 | jq -> nix | Eelco Dolstra | |
2020-09-16 | builtins.toFile: Fix indentation | Eelco Dolstra | |
2020-09-16 | Remove useless exception copy | Théophane Hufschmitt | |
Co-authored-by: Eelco Dolstra <edolstra@gmail.com> | |||
2020-09-16 | Add a test for `nix describe-stores` | regnat | |
Doesn't test much, but at least ensures that the command runs properly | |||
2020-09-16 | Fix the s3 store | regnat | |
Add some necessary casts in the initialisation of the store's config | |||
2020-09-16 | Don't include nlohmann/json.hpp in config.hh | regnat | |
Instead make a separate header with the template implementation of `BaseSetting<T>::toJSONObj` that can be included where needed | |||
2020-09-16 | Include the full nlohmann/json header in config.hh | regnat | |
It is apparently required for using `toJSONObject()`, which we do inside the header file (because it's in a template). This was accidentally working when building Nix itself (presumably because `config.hh` was always included after `nlohman/json.hpp`) but caused a (pretty dirty) build failure in the perl bindings package. | |||
2020-09-16 | Add `(StoreConfig*)` casts to work around a GCC bug | regnat | |
Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80431 that was already there in the code but was accidentally removed in the last commits | |||
2020-09-16 | fixup! Add a default value for the settings | regnat | |
2020-09-16 | Fix build issues with gcc | regnat | |
2020-09-16 | Add a markdown output to `nix describe-stores` | regnat | |
2020-09-16 | Add a name to the stores | regnat | |
So that it can be printed by `nix describe-stores` | |||
2020-09-16 | Document the new store hierarchy | regnat | |
2020-09-16 | Make uri schemes grammar more RFC-compliant | regnat | |
Allow `-` and `.` in the RFC schemes as stated by [RFC3986](https://tools.ietf.org/html/rfc3986#section-3.1). Practically, this is needed so that `ssh-ng` is a valid URI scheme | |||
2020-09-16 | fixup! Make the store plugins more introspectable | regnat | |
2020-09-16 | fixup! Correctly call all the parent contructors of the stores | regnat | |
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 | Correctly call all the parent contructors of the stores | regnat | |
Using virtual inheritance means that only the default constructors of the parent classes will be called, which isn't what we want | |||
2020-09-16 | fixup! Make the store plugins more introspectable | regnat | |
2020-09-16 | Make `nix describe-stores` functional | regnat | |
Using the `*Config` class hierarchy | |||
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 | Add a default value for the settings | regnat | |
The default value is initialized when creating the setting and unchanged after that | |||
2020-09-16 | Complete the `toJSON` instance for `Setting<T>` | regnat | |
Don't let it just contain the value, but also the other fields of the setting (description, aliases, etc..) | |||
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-16 | Merge branch 'single-ca-drv-build' of https://github.com/obsidiansystems/nix | Eelco Dolstra | |
2020-09-15 | Rename `Derivation::pathOpt` to `Derivation::path` | John Ericson | |
We no longer need the `*Opt` to disambiguate. | |||
2020-09-15 | Get rid of confusing `std::optional<bool>` for validity | John Ericson | |