snix/third_party/nix/src
Griffin Smith fb0528c5da fix(tvix): Pass all args when auto-calling a function with an ellipsis
The command line options --arg and --argstr that are used by a bunch of
CLI commands to pass arguments to top-level functions in files go
through the same code-path as auto-calling top-level functions with
their default arguments - this, however, was only passing the arguments
that were *explicitly* mentioned in the formals of the function - in the
case of an as-pattern with an ellipsis (eg args @ { ... }) extra passed
arguments would get omitted. This fixes that to instead pass *all*
specified auto args in the case that our function has an ellipsis.

Submitted upstream at https://github.com/NixOS/nix/pull/3965

Fixes: #46
Change-Id: I32b7ee0e5bacf75b2bc43a3f0796f533f4bd5959
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1863
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
2020-08-28 01:18:19 +00:00
..
build-remote refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
cpptoml style(3p/nix): Remove 'using std::*' from types.hh 2020-05-24 22:29:21 +01:00
libexpr fix(tvix): Pass all args when auto-calling a function with an ellipsis 2020-08-28 01:18:19 +00:00
libmain refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
libstore refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
libutil refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
nix refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
nix-build fix(tvix): Pass all args when auto-calling a function with an ellipsis 2020-08-28 01:18:19 +00:00
nix-channel chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
nix-collect-garbage chore(3p/nix): Remove support for plugins 2020-07-20 14:45:43 +00:00
nix-copy-closure fix(3p/nix): revert "apply all clang-tidy fixes" 2020-08-01 22:45:15 +00:00
nix-daemon chore(tvix): Thread a std::ostream through Store::buildPaths 2020-08-20 11:48:40 +00:00
nix-env style(tvix): Replace remaining typedefs with using statements 2020-08-21 03:55:56 +00:00
nix-instantiate refactor(tvix): always pass Bindings by ptr, use shared/unique_ptr 2020-08-17 02:23:49 +00:00
nix-prefetch-url refactor(tvix/libutil): Mark single-argument constructors explicit 2020-08-23 11:58:44 +00:00
nix-store refactor(tvix): Replace several DiscardLogsSink() with std::cerr 2020-08-21 01:35:08 +00:00
nlohmann Add 'third_party/nix/' from commit 'be66c7a6b24e3c3c6157fd37b86c7203d14acf10' 2020-05-17 15:52:38 +01:00
proto feat(tvix): Introduce build event streams in worker protocol 2020-08-20 11:48:40 +00:00
tests feat(tvix): Re-enable language tests that needed a store 2020-08-18 03:58:13 +00:00
CMakeLists.txt refactor(3p/nix): Build nix-daemon as a separate binary 2020-08-03 18:26:44 +00:00