| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Looking at a flake with inputs drawn from sources, populate overrides
those inputs with an empty flake, which makes Nix warn that it doesn't
write the lock file it changed, listing the overrides, on every run,
locally for archiving a flake or flake-input source, and on the target
for checking the inputs drawn. nix_looking leaves that warning out of
what Nix prints.
A generated flake gets locked anew on every run, so it pins what the
inputs are now, which made Nix print that it creates the lock file,
listing all inputs, on every run. That only gets printed if the lock
file differs from the one there was.
No phase is expected to print Nix's warning, and relock's second phase,
which changes nothing, isn't expected to print anything about the
generated flake's lock file.
|
| |
|
|
|
|
|
| |
nix copy connects anew, without the shared connection, also when the
target has all of a flake's store paths already, and then copies
nothing. The shared connection tells which store paths the target
lacks, and nix copy only copies those, if any.
|
|
|
src/flake_input.rs reads what nix flake metadata and nix flake archive
print as JSON itself: it selects the flake or input, decides what the
target fetches or gets copied, and computes the store paths to root,
which are what selected.jq, selfIsRemote.jq, selfLocked.jq, and the Nix
expressions of the shell implementation do there. On the target, fixed
snippets in sh::flake run Nix, getting values as positional parameters,
and send JSON or store paths back. The jq test's cases are unit tests of
the Rust equivalents.
|