kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

No way to specify clone depth when build context is a git repo

Open ashishmax31 opened this issue 7 months ago • 0 comments

Since we only care about the current state of the repo, it doesn't make sense to pull the full commit history of a repo. It would be helpful to expose a new flag to set the git clone depth - Which would then be honoured here: https://github.com/GoogleContainerTools/kaniko/blob/main/pkg/buildcontext/git.go#L62.

I'd be happy to open a PR to add this change. Thanks!

ashishmax31 avatar May 17 '25 13:05 ashishmax31