[Resolved] Git Cache Behavior Isn't Great #1362
Replies: 6 comments 2 replies
-
See this for another example: https://kubernetes.slack.com/archives/C03B6BJAUJ3/p1676641285886259 |
Beta Was this translation helpful? Give feedback.
-
As a note, if we do remove this we could have people explicitly use file://path/to/my/git/repo now that that is supported instead to allow people to control a repo from a local folder. |
Beta Was this translation helpful? Give feedback.
-
I think changes such as this should be well documented/communicated. I found this problem by reading through the code after encountering the git repo failure (I had upgraded from 0.23 to 0.24). Also, I'm not a fan of forcing git creds on end users who just want to consume a public repo. Edit: |
Beta Was this translation helpful? Give feedback.
-
Opt-in sounds like the way to go especially since Zarf is not air gaped only and seems like the caching issue causes issues even in disconnected (but not air gapped) environments if that makes sense. |
Beta Was this translation helpful? Give feedback.
-
Here is an example PR of what a simple removal would look like: #1398 For anyone using git caching for particularly large repos, thoughts on this pattern?
From what I can see: Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
-
Since we've added the caching feature for git repos, we've seen a lot of issues. Initially, I didn't think caching for git was valuable due to its complexity under the hood (unlike files, for example), and we've seen this born out with git-isms and quirks of go-git. I propose we change this behavior to be opt-in or even consider removing it altogether and suggest those that need to use something with actions to manage their very large repos instead.
Beta Was this translation helpful? Give feedback.
All reactions