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

Using FileSystemObjectSink in the Tarball cache #10

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

Ericson2314
Copy link

The thing I had pushed, but merging in NixOS#9653 now that that commit is pulled out into its own PR.

@Ericson2314 Ericson2314 requested a review from edolstra as a code owner January 3, 2024 16:05
There is now a separation of:

1. A `FileSystemObjectSink` for writing to git repos

2. Adapting libarchive to use that parse sink.

The prepares a proper separation of concerns.
There is no longer an `importTarball` method. Instead, there is a
`unpackTarfileToSink` function (back in libutil). The caller can use
thisw with the `getParseSink` method we added in the last commit easily
enough.

In addition, tarball cache functionality is separated from `git-utils`
and moved into `tarball-cache`. This ensures we are separating mechanism
and policy.
@Ericson2314 Ericson2314 changed the title Using ParseSink in the Tarball cache Using FileSystemObjectSink in the Tarball cache Feb 15, 2024
@edolstra edolstra merged commit 9b04ce1 into edolstra:tarball-cache Feb 15, 2024
8 checks passed
@edolstra
Copy link
Owner

Thanks!

@Ericson2314 Ericson2314 deleted the tarball-cache branch February 15, 2024 21:05
edolstra pushed a commit that referenced this pull request Apr 8, 2024
Fix and test deleting when lower store references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants