lix/src
Adam Joseph dc205c75a2 src/libexpr/primops.cc: correct definition for intersectAttrs
The current definition of `intersectAttrs` is incorrect:

> Return a set consisting of the attributes in the set e2 that also exist in the
> set e1.

Recall that (Nix manual, section 5.1):

> An attribute set is a collection of name-value-pairs (called attributes)

According to the existing description of `intersectAttrs`, the following should
evaluate to the empty set, since no key-value *pair* (i.e. attribute) exists in
both sets:

```
builtins.intersectAttrs { x=3; } {x="foo";}
```

And yet:

```
nix-repl> builtins.intersectAttrs { x=3; } {x="foo";}
{ x = "foo"; }
```

Clearly the intent here was for the *names* of the resulting attribute set to be
the intersection of the *names* of the two arguments, and for the values of the
resulting attribute set to be the values from the second argument.

This commit corrects the definition, making it match the implementation and intent.
2022-09-24 23:51:09 -07:00
..
build-remote Generalize DerivationType in preparation for impure derivations 2022-03-18 14:59:56 +00:00
libcmd nix repl: warn if creating dir for history fails 2022-09-20 11:01:40 +00:00
libexpr src/libexpr/primops.cc: correct definition for intersectAttrs 2022-09-24 23:51:09 -07:00
libfetchers Don't pass --force to 'git add' 2022-08-17 16:59:02 +02:00
libmain RunPager: Stop the progress bar 2022-09-13 15:29:13 +02:00
libstore Merge pull request #7078 from obsidiansystems/trustworthy-signature 2022-09-24 12:52:35 +02:00
libutil Improve durability of schema version file writes 2022-09-19 20:13:30 -07:00
nix Merge pull request #7010 from edolstra/ignore-shell 2022-09-24 12:55:53 +02:00
nix-build nix-shell: specify which outputs from bashInteractive to build 2022-08-09 22:54:22 -04:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Add missing rethrows in conditional exception handlers 2022-06-10 10:52:41 -07:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Fix a misplaced parenthese in serve protocol check 2022-08-24 01:54:43 +02:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00