Alternative approach to keeping archives cached
Created by: mrnugget
This is a second, alterantive approach to https://github.com/sourcegraph/src-cli/pull/449 for keeping archives cached across different executions.
It models RepoZip
as a thunk in a way: RepoFetcher.Checkout()
returns a RepoZip
that's passed around with the Task
. Once all Tasks
have called Fetch()
and Close()
only then the archive is cleaned up.