Commit graph

7 commits

Author SHA1 Message Date
Pierre Bourdon 50daba62af
index-debuginfo: support building with Nix >= 2.19 2024-02-21 00:26:10 +01:00
Graham Christensen 2fb68d4782
Update index-debuginfo.cc 2023-01-26 08:33:36 -05:00
Ilya K cda466b04a fix: fix debuginfo paths 2023-01-26 10:11:34 +03:00
Ilya K 8656f3e07f Replace ad-hoc command-not-found generation scripts with nix-index
This is much, MUCH faster than the existing solution, especially on large channels.
It can be made even faster if we actually reuse anything whatsoever, but this is
a massive improvement in itself.
2023-01-12 21:00:49 +03:00
Eelco Dolstra f3aa3bae4c
Fix build 2020-05-12 15:54:37 +02:00
Eelco Dolstra 059ee08f5c Use nix-master 2019-12-30 21:51:21 +01:00
Eelco Dolstra 74c917454c
Add a command for indexing debug info files by build ID
For every file "lib/debug/.build-id/<build-id>.debug" in every store
path ending in -debug in a release, this command creates an S3 key
"debuginfo/<build-id>" specifying the location of the NAR that
contains the debug info file for that build ID. Thus,
https://cache.nixos.org/debuginfo allows debug info files to be looked
up by build ID. This allows debug info files to be fetched
automatically by dwarffs [1].

One minor issue is that in theory, multiple store paths could provide
debug info files for a particular build ID. So then when we garbage
collect a store path from the binary cache, we migth invalidate a
debug info link even though there are non-GC'ed store paths that
provide the file. Ah well.

I could have used HTTP redirects, but they're kind of a pain to
configure with S3.

[1] https://github.com/edolstra/dwarffs
2017-07-07 15:33:27 +02:00