diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-09-11 00:27:39 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-09-11 01:10:49 -0700 |
commit | 81c2e0ac8e76ddb3fd3c8e2ce59929853614b1b6 (patch) | |
tree | c4a2796a7aa0788baf4a2c7b8a2b615144186ffd /src/libstore/path-references.cc | |
parent | 686120ee4a34f658b2f19dcac9f9dc44dbc98b93 (diff) |
archive: rename ParseSink to NARParseVisitor
- Rename the listener to not be called a "sink". If it were a "sink" it
would be eating bytes and conform with any of the Nix sink stuff
(maybe FileHandle should be a Sink itself! but that's a later CL's
problem). This is a parser listener.
- Move the RetrieveRegularNARSink thing into store-api.cc, which is its
only usage, and fix it to actually do what it is stated to do: crash
if its invariants are violated.
It's, of course, used to erm, unpack single-file NAR files, generated
via a horrible contraption of sources and sinks that looks like a
plumbing blueprint. Refactoring that is a future task.
- Add a description of the invariants of NARParseVisitor in preparation
of refactoring it.
Change-Id: Ifca1d74d2947204a1f66349772e54dad0743e944
Diffstat (limited to 'src/libstore/path-references.cc')
0 files changed, 0 insertions, 0 deletions