Skip to content

Commit

Permalink
working with local files: Add output example (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
YSawc authored Jul 25, 2024
1 parent fc292e2 commit d554da9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/tutorials/working-with-local-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,19 @@ Create a file set containing a union of the files to exclude (`fs.unions [ ... ]
]);
```

This will work as expected:

```
$ nix-build
trace: /home/user/fileset
trace: - hello.txt (regular)
trace: - world.txt (regular)
this derivation will be built:
/nix/store/gr2hw3gdjc28fmv0as1ikpj7lya4r51f-fileset.drv
...
/nix/store/ckn40y7hgqphhbhyrq64h9r6rvdh973r-fileset
```

Changing any of the excluded files now doesn't necessarily cause a new build anymore:

```
Expand Down

0 comments on commit d554da9

Please sign in to comment.