You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two git repositories involved in a clone - the "farm" which keeps track of most of the repository, and then the clone off of the farm to get the git dir that the user sees. When specifying a depth, we need to ensure that the "farm" has at least the required depth, and then we just need to set the depth correctly when cloning off of the farm. The rest of this, plumbing through from the dagger API should be pretty easy.
Activity
jedevc commentedon Oct 30, 2024
Yup, this seems very reasonable to me, in my head this is strongly related to all the API improvements in #8520 (comment).
As a note to anyone picking this up - the logic for this needs to end up in our custom buildkit git source here:
dagger/engine/sources/gitdns/source.go
Lines 516 to 523 in d4d7591
There are two git repositories involved in a clone - the "farm" which keeps track of most of the repository, and then the clone off of the farm to get the git dir that the user sees. When specifying a depth, we need to ensure that the "farm" has at least the required depth, and then we just need to set the depth correctly when cloning off of the farm. The rest of this, plumbing through from the dagger API should be pretty easy.
jedevc commentedon Apr 23, 2025
Fixed by #9980.