Closed K900 closed 1 year ago
Thanks! I don't have time right now to review this, but hopefully will be able to look at this after christmas
Rebased, fixed all the nits, added some more refactoring on top.
With the current version of this PR, I can eval + index all of nixpkgs for the four major platforms ({aarch64,x86_64}-{linux,darwin}) in under three minutes.
Hopefully last push of the night, fixed symlinks in /bin
not being indexed.
And of course just as I said that, I found another bug. We should ignore non-toplevel
paths for c-n-f, as they're not installable.
Hopefully the last few changes to get us closer to the old database (mostly based on carefully comparing things by eye). The delta for x86_64-linux is down to ~2400 entries out of ~64000, and at a glance the new version mostly looks better.
This adds a new tool that allows generating SQLite databases compatible with the default Nix command-not-found implementation. The intent is to eventually replace the current command-not-found database generation code (which is painfully slow) with this implementation to hopefully massively speed up channel updates.