Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ParseSink a bit better #9265

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

Ericson2314
Copy link
Member

Motivation

I wouldn't call it good yet, but this will do for now.

  • RetrieveRegularNARSink renamed to RegularFileSink and moved accordingly because it actually has nothing to do with NARs in particular.

    • its fd field is also marked private
  • copyRecursive introduced to dump a SourceAccessor into a ParseSink.

  • NullParseSink made so ParseSink no longer has sketchy default methods.

Context

This was done while updating #8918 to work with the new SourceAccessor.

Priorities

Add 👍 to pull requests you find important.

I wouldn't call it *good* yet, but this will do for now.

- `RetrieveRegularNARSink` renamed to `RegularFileSink` and moved
  accordingly because it actually has nothing to do with NARs in
  particular.

  - its `fd` field is also marked private

- `copyRecursive` introduced to dump a `SourceAccessor` into a
  `ParseSink`.

- `NullParseSink` made so `ParseSink` no longer has sketchy default
  methods.

This was done while updating NixOS#8918 to work with the new
`SourceAccessor`.
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Nov 1, 2023
@Ericson2314 Ericson2314 merged commit 90de958 into NixOS:master Nov 2, 2023
8 checks passed
@Ericson2314 Ericson2314 deleted the better-parse-sink branch November 2, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Issues and pull requests concerning the Nix store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants