Branch: refs/heads/master
Home: https://github.com/NixOS/nix
Commit: e7cb2847ab1cec48eac6a86c56885b3f0df76275
https://github.com/NixOS/nix/commit/e7cb2847ab1cec48eac6a86c56885b3f0df76275
Author: Dan Peebles <[email protected]>
Date: 2017-02-22 (Wed, 22 Feb 2017)
Changed paths:
M src/libexpr/eval.cc
M src/libstore/build.cc
M src/libstore/crypto.cc
M src/libstore/download.cc
M src/libstore/globals.cc
M src/libstore/globals.hh
M src/libstore/local-store.cc
M src/libstore/store-api.cc
M src/nix-daemon/nix-daemon.cc
M src/nix-store/nix-store.cc
Log Message:
-----------
Explicitly model all settings and fail on unrecognized ones
Previously, the Settings class allowed other code to query for string
properties, which led to a proliferation of code all over the place making
up new options without any sort of central registry of valid options. This
commit pulls all those options back into the central Settings class and
removes the public get() methods, to discourage future abuses like that.
Furthermore, because we know the full set of options ahead of time, we
now fail loudly if someone enters an unrecognized option, thus preventing
subtle typos. With some template fun, we could probably also dump the full
set of options (with documentation, defaults, etc.) to the command line,
but I'm not doing that yet here.
Commit: 31cc9366fc81c3f478b31a206daa6b38801cd3b1
https://github.com/NixOS/nix/commit/31cc9366fc81c3f478b31a206daa6b38801cd3b1
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M perl/lib/Nix/Store.xs
M src/libmain/shared.cc
M src/libutil/logging.cc
Log Message:
-----------
Initialise logger
Commit: 6d97d816565505606792050131b5d4d7fca33245
https://github.com/NixOS/nix/commit/6d97d816565505606792050131b5d4d7fca33245
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libutil/logging.cc
M src/libutil/logging.hh
Log Message:
-----------
Add warn function
Commit: 568a099c889e7ccc5a49b15575078e99acf8bc2f
https://github.com/NixOS/nix/commit/568a099c889e7ccc5a49b15575078e99acf8bc2f
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libutil/util.cc
Log Message:
-----------
canonPath(): Check against empty paths
Commit: 2040240e238a41c2eb799bf4dbf394fec297ac16
https://github.com/NixOS/nix/commit/2040240e238a41c2eb799bf4dbf394fec297ac16
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libstore/binary-cache-store.cc
M src/libstore/binary-cache-store.hh
M src/libstore/build.cc
M src/libstore/legacy-ssh-store.cc
M src/libstore/local-fs-store.cc
M src/libstore/local-store.cc
M src/libstore/local-store.hh
M src/libstore/remote-store.cc
M src/libstore/remote-store.hh
M src/libstore/s3-binary-cache-store.cc
M src/libstore/ssh-store.cc
M src/libstore/store-api.cc
M src/libstore/store-api.hh
A src/libutil/config.cc
A src/libutil/config.hh
M src/libutil/types.hh
Log Message:
-----------
Add a Config class to simplify adding configuration settings
The typical use is to inherit Config and add Setting<T> members:
class MyClass : private Config
{
Setting<int> foo{this, 123, "foo", "the number of foos to use"};
Setting<std::string> bar{this, "blabla", "bar", "the name of the bar"};
MyClass() : Config(readConfigFile("/etc/my-app.conf"))
{
std::cout << foo << "\n"; // will print 123 unless overriden
}
};
Currently, this is used by Store and its subclasses for store
parameters. You now get a warning if you specify a non-existant store
parameter in a store URI.
Commit: 1860070548db119fc5f958febff3a087f21d5c83
https://github.com/NixOS/nix/commit/1860070548db119fc5f958febff3a087f21d5c83
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libexpr/eval.cc
M src/libstore/build.cc
M src/libstore/crypto.cc
M src/libstore/download.cc
M src/libstore/globals.cc
M src/libstore/globals.hh
M src/libstore/local-store.cc
M src/libstore/local-store.hh
M src/libstore/store-api.cc
M src/nix-daemon/nix-daemon.cc
M src/nix-store/nix-store.cc
Log Message:
-----------
Merge branch 'rework-options' of https://github.com/copumpkin/nix
Commit: 0bf34de43b2fc4c9c3104b986eaea5c5cc856b83
https://github.com/NixOS/nix/commit/0bf34de43b2fc4c9c3104b986eaea5c5cc856b83
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libutil/config.cc
Log Message:
-----------
Validate Boolean settings better
Commit: 6bd9576aeb55927cb551736a47b4e8e3fd1063bb
https://github.com/NixOS/nix/commit/6bd9576aeb55927cb551736a47b4e8e3fd1063bb
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M src/libutil/config.cc
Log Message:
-----------
Support arbitrary numeric types for settings
Commit: ba9ad29fdbfda3836bb06b35817f08fd10beaa22
https://github.com/NixOS/nix/commit/ba9ad29fdbfda3836bb06b35817f08fd10beaa22
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
M doc/manual/command-ref/conf-file.xml
M perl/lib/Nix/Config.pm.in
M src/libmain/common-args.cc
M src/libmain/shared.cc
M src/libstore/build.cc
M src/libstore/crypto.cc
M src/libstore/download.cc
M src/libstore/globals.cc
M src/libstore/globals.hh
M src/libstore/local-store.cc
M src/libstore/remote-store.cc
M src/libstore/store-api.cc
M src/libutil/config.cc
M src/libutil/config.hh
M src/nix-daemon/nix-daemon.cc
M src/nix-store/nix-store.cc
M src/nix/main.cc
M tests/shell.shebang.sh
Log Message:
-----------
Convert Settings to the new config system
This makes all config options self-documenting.
Unknown or unparseable config settings and --option flags now cause a
warning.
Commit: 872ba75d8b6212c3a5e399ec62cbda86e58d3680
https://github.com/NixOS/nix/commit/872ba75d8b6212c3a5e399ec62cbda86e58d3680
Author: Eelco Dolstra <[email protected]>
Date: 2017-04-13 (Thu, 13 Apr 2017)
Changed paths:
A src/nix/show-config.cc
Log Message:
-----------
Add "nix show-config" command
This dumps the entire Nix configuration, including all options that
have default values.
Compare: https://github.com/NixOS/nix/compare/16c485602738...872ba75d8b62_______________________________________________
nix-commits mailing list
[email protected]
https://mailman.science.uu.nl/mailman/listinfo/nix-commits