Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-14 | EvalCache: Ignore SQLite errors | Eelco Dolstra | |
Fixes #3794. | |||
2020-07-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-01 | Support building flakes from a shallow Git repo | Eelco Dolstra | |
Fixes #3756. | |||
2020-06-17 | getFlake -> builtins.getFlake | Eelco Dolstra | |
2020-06-17 | Don't provide 'getFlake' if the 'flakes' feature is not enabled | Eelco Dolstra | |
2020-06-12 | Check 'follows' inputs | Eelco Dolstra | |
2020-06-11 | diffLockFiles(): Show 'follows' changes | Eelco Dolstra | |
2020-06-11 | Represent 'follows' inputs explicitly in the lock file | Eelco Dolstra | |
This fixes an issue where lockfile generation was not idempotent: after updating a lockfile, a "follows" node would end up pointing to a new copy of the node, rather than to the original node. | |||
2020-06-10 | Preserve 'isFlake' when not updating a lock file entry | Eelco Dolstra | |
2020-06-10 | Combine lock file update messages | Eelco Dolstra | |
2020-06-10 | Add helper function printInputPath() | Eelco Dolstra | |
2020-06-09 | Fix applyOverride() for github | Eelco Dolstra | |
2020-06-08 | Add completion for --update-input | Eelco Dolstra | |
2020-06-05 | diffLockFiles(): Fix assertion failure | Eelco Dolstra | |
There are some cases where this inequality didn't hold, in particular due to the Input / TreeInfo merge, where we're not always showing narHash. | |||
2020-06-01 | fetchOrSubstituteTree improvements | Matthew Kenigsberg | |
Caches tree in addition to lockedRef, and explicitly writes out the logic for different combinations of cached/uncached flakes and indirect/resolved/locked flakes. This eliminates uneccessary calls to lookupInFlakeCache, fetchTree, maybeLookupFlake, and flakeCache.push_back | |||
2020-05-30 | Move substitution into Input::fetch() | Eelco Dolstra | |
Closes #3520. | |||
2020-05-30 | Remove TreeInfo | Eelco Dolstra | |
The attributes previously stored in TreeInfo (narHash, revCount, lastModified) are now stored in Input. This makes it less arbitrary what attributes are stored where. As a result, the lock file format has changed. An entry like "info": { "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github" }, is now stored as "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github", "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, The 'Input' class is now a dumb set of attributes. All the fetcher implementations subclass InputScheme, not Input. This simplifies the API. Also, fix substitution of flake inputs. This was broken since lazy flake fetching started using fetchTree internally. | |||
2020-05-06 | Remove support for old lockfiles and the epoch/uri attributes | Eelco Dolstra | |
2020-04-27 | Improve path:// handling | Eelco Dolstra | |
In particular, doing 'nix build /path/to/dir' now works if /path/to/dir is not a Git tree (it only has to contain a flake.nix file). Also, 'nix flake init' no longer requires a Git tree (but it will do a 'git add flake.nix' if it's a Git tree) | |||
2020-04-20 | Fix typo | Eelco Dolstra | |
2020-04-20 | Move eval-cache.{cc,hh} | Eelco Dolstra | |
2020-04-20 | Get rid of the old eval cache | Eelco Dolstra | |
2020-04-16 | Use RootValue | Eelco Dolstra | |
2020-04-10 | Remove flake 'edition' field | Eelco Dolstra | |
Future editions of flakes or the Nix language can be supported by renaming flake.nix (e.g. flake-v2.nix). This avoids a bootstrap problem where we don't know which grammar to use to parse flake*.nix. It also allows a project to support multiple flake editions, in theory. | |||
2020-04-06 | nix flake info: Show resolved URL | Eelco Dolstra | |
This is useful for finding out what a registry lookup resolves to, e.g $ nix flake info patchelf Resolved URL: github:NixOS/patchelf Locked URL: github:NixOS/patchelf/cd7955af31698c571c30b7a0f78e59fd624d0229 | |||
2020-04-03 | Make --override-input sticky | Eelco Dolstra | |
When we do something like 'nix flake update --override-input nixpkgs ...', the override is now kept on subsequent calls. (If you don't want this behaviour, you can use --no-write-lock-file.) | |||
2020-04-03 | getFlake: In pure mode, check that the argument is an immutable flakeref | Eelco Dolstra | |
2020-04-02 | Respect the narHash attribute in more input types | Eelco Dolstra | |
call-flake.nix now passes node.info.narHash to fetchTree. This ensures that dirty Git trees work even in pure mode. | |||
2020-04-02 | Move parseTreeInfo() | Eelco Dolstra | |
2020-04-02 | nix flake info --json: Show TreeInfo | Eelco Dolstra | |
2020-03-30 | Move fetchers from libstore to libfetchers | Eelco Dolstra | |
2020-03-28 | Warn about --override-input / --update-input flags that don't match an input | Eelco Dolstra | |
2020-03-28 | nix flake info: Show flake subdirectory | Eelco Dolstra | |
2020-03-27 | Improve lock file generation | Eelco Dolstra | |
This is now done in a single pass. Also fixes some issues when updating flakes with circular dependencies. Finally, when using '--recreate-lock-file --commit-lock-file', the commit message now correctly shows the differences. | |||
2020-03-27 | Fix diffLockFiles() | Eelco Dolstra | |
2020-03-17 | Unified fetcher caching system | Eelco Dolstra | |
2020-03-12 | Change the lock file to a graph | Eelco Dolstra | |
This enables support for cycles between flakes. | |||
2020-03-11 | Move call-flake.nix into libexpr | Eelco Dolstra | |
2020-03-10 | Fix flake subdirectory handling | Eelco Dolstra | |
2020-03-09 | Move calling flakes into a Nix helper function (call-flake.nix) | Eelco Dolstra | |
2020-03-09 | Add 'flake' attribute to lock files to denote non-flakes | Eelco Dolstra | |
2020-02-20 | Restore subdir -> dir | Eelco Dolstra | |
Got this mixed up somewhere. | |||
2020-02-20 | Restore subdir support in registries | Eelco Dolstra | |
Hacky... | |||
2020-02-14 | Fix build | Eelco Dolstra | |
2020-02-06 | Registry: Use attr notation instead of URLs | Eelco Dolstra | |
2020-02-05 | Warn when we commit a new revision | Eelco Dolstra | |
2020-02-05 | Improve commit subject line | Eelco Dolstra | |
2020-02-05 | Add option --commit-lock-file | Eelco Dolstra | |
2020-02-03 | Fix URL parser | Eelco Dolstra | |
Fixes #3062. | |||
2020-02-03 | Emit narHash attribute | Eelco Dolstra | |