Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | fixup! Add a default value for the settings | 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 | 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-01 | Merge remote-tracking branch 'upstream/master' into single-ca-drv-build | John Ericson | |
2020-08-31 | Merge remote-tracking branch 'origin/master' into markdown | Eelco Dolstra | |
2020-08-28 | Merge remote-tracking branch 'upstream/master' into single-ca-drv-build | John Ericson | |
2020-08-28 | Merge branch 'minimal-logger' of https://github.com/Ma27/nix | Eelco Dolstra | |
2020-08-27 | Typo | Eelco Dolstra | |
2020-08-27 | RemoteStore::addToStore(): Fix race between stderrThread and NAR writer | Eelco Dolstra | |
As pointed out by @B4dM4n, the call to to.flush() on stderrThread is unsafe because the NAR writer thread is also writing to 'to'. Fixes #3943. | |||
2020-08-25 | Fix tests | Eelco Dolstra | |
2020-08-24 | Fix tests | Eelco Dolstra | |
2020-08-20 | Allow 'nix' subcommands to provide docs in Markdown format | Eelco Dolstra | |
2020-08-20 | List deprecated option aliases in the docs | Eelco Dolstra | |
2020-08-20 | Config: Use nlohmann/json | Eelco Dolstra | |
2020-08-19 | Generate the nix.conf docs from the source code | Eelco Dolstra | |
This means we don't have two (divergent) sets of option descriptions anymore. | |||
2020-08-17 | Start generation of the nix.1 manpage | Eelco Dolstra | |
2020-08-17 | Add 'nix dump-args' to dump all commands/flags for manpage generation | Eelco Dolstra | |
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-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 | Add Hash::dummy to signal default value | Carlo Nucera | |
We did this in the same spirit of the dummy value that's present in libstore/path.hh | |||
2020-08-05 | Merge remote-tracking branch 'upstream/master' into misc-ca | John Ericson | |
2020-08-05 | Merge remote-tracking branch 'upstream/master' into misc-ca | John Ericson | |
2020-08-05 | Merge pull request #3730 from obsidiansystems/better-ca-parse-errors | Eelco Dolstra | |
Improve hash parsing and errors | |||
2020-08-05 | Merge pull request #3864 from obsidiansystems/more-topo-sort | Eelco Dolstra | |
Abstract out topo sorting logic | |||
2020-08-04 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-08-03 | Delete compressed NARs | Eelco Dolstra | |
Fixes #3891. | |||
2020-08-01 | Embelish documentation of new Hash functions | John Ericson | |
2020-08-01 | Convert to C-style comments | John Ericson | |
2020-07-30 | Merge branch 'master' of github.com:NixOS/nix into better-ca-parse-errors | Carlo Nucera | |
2020-07-30 | Fix build | Eelco Dolstra | |
2020-07-30 | unsigned long long -> uint64_t | Eelco Dolstra | |
2020-07-30 | receiveContents(): unsigned int -> size_t | Eelco Dolstra | |
2020-07-27 | Abstract out topo sorting logic | John Ericson | |
2020-07-27 | Merge remote-tracking branch 'upstream/master' into ca-derivation-data-types | John Ericson | |
2020-07-27 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-27 | Merge branch 'optional-derivation-output-storepath' into ↵ | John Ericson | |
ca-derivation-data-types | |||
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-26 | libutil/logging: extend `internal-json` logger to make it more machine-readable | Maximilian Bosch | |
The new error-format is pretty nice from a UX point-of-view, however it's fairly hard to parse the output e.g. for editor plugins such as vim-ale[1] that use `nix-instantiate --parse` to determine syntax errors in Nix expression files. This patch extends the `internal-json` logger by adding the fields `line`, `column` and `file` to easily locate an error in a file and the field `raw_msg` which contains the error-message itself without code-lines and additional helpers. An exemplary output may look like this: ``` [nix-shell]$ ./inst/bin/nix-instantiate ~/test.nix --log-format minimal {"action":"msg","column":1,"file":"/home/ma27/test.nix","level":0,"line":4,"raw_msg":"syntax error, unexpected IF, expecting $end","msg":"<full error-msg with code-lines etc>"} ``` [1] https://github.com/dense-analysis/ale | |||
2020-07-24 | createUnixDomainSocket(): Fix off-by-one error in copying the socket path | Eelco Dolstra | |
Reported by Kane York. | |||
2020-07-21 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-07-21 | Merge branch 'fix-and-document-addToStoreSlow' of ↵ | John Ericson | |
github.com:obsidiansystems/nix into ca-derivation-data-types | |||
2020-07-20 | Add UnimplementedError to ease grepping for these | Carlo Nucera | |
2020-07-20 | Remove period at the end of the exception message | John Ericson | |