On Thu, 30 Sep 2021 10:31:08 -0500 Katherine Cox-Buday <cox.katherin...@gmail.com> wrote:
> Sarah Morgensen <iskar...@mgsn.dev> writes: > > Did you have something particular in mind as far as leveraging the > > Go tooling? > > I haven't though too much about it, but ~GOPROXY=direct~ was my guess > too. Thinking about this, would a shallow fetch into a bare > repository be so bad? > > It made me start wondering why our ~git-download~ type /doesn't/ have > this behavior. Are we unnecessarily pulling down the entire commit > history with all tags and branches of a large repository? > > I don't even know what the philosophy is being doing this or not. > Isn't the only commitment a Guix package makes for software at a > particular version/commit that the store contains that immutable > version of the source, not the complete repository? AFAIK there is a long standing libgit2 bug for adding support for shallow fetches. Or rather operations on shallow repositories. https://github.com/libgit2/libgit2/issues/3058 So guile-git can't have shallow fetches until libgit2 gets its act together. Or Guix could use a patched libgit2 I guess.