Skip to content

git-artifacts: git-lfs supported? #14225

Closed Answered by abuob
abuob asked this question in Q&A
Discussion options

You must be logged in to vote

In case others stumble on this question:

Turned out it's not supported. If I've groked the code correctly (not familiar with Go), argo-workflows is using go-git to checkout the repository: https://github.com/argoproj/argo-workflows/blob/main/workflow/artifacts/git/git.go#L10

And go-git does not support git-lfs currently: go-git/go-git#381

However, it turned out to be relatively straight-forward to do this manually. We need an initial step which does the git-lfs-fetch & git-lfs-checkout, and can then make the lfs-objects available for the remaining steps of the workflow similar to the git-artifact: Everything that git-lfs fetches is stored in the .git/lfs/-folder, so we can fetch it in one…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abuob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant