kluctl
kluctl copied to clipboard
git hash algorithm sha256 is not supported
trafficstars
Operating system
macOS 15.0
Kluctl Version
2.25.1
Kubernetes Version
v1.29.8-eks
kubectl Version
v1.31.1
Bug description
Description:
The kluctl-controller fails with the following error when trying to clone a Git source from a GitLab repository that uses the sha256 hash algorithm:
failed to clone git source: pkt-line 1: no space after hash (370407d7534af945a348385e HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed allow-tip-sha1-in-want allow-reachable-sha1-in-want symref=HEAD
/heads/main filter object-format=sha256 agent=git/2.46.2)
Additionally, kluctl throws the following error when attempting to interact with the same repository using diff, deploy, or prune commands:
packfile not found
Steps to reproduce
git init --object-format=sha256 k8s-deployment-test
and use it for a kluctl deployment
or (what I did by accident)
Relevant log output
No response
fyi, this is dependent on https://github.com/go-git/go-git/issues/706