Skip to content

GitRepository no longer works with 1.5.0 #1765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Szpadel opened this issue Mar 28, 2025 · 3 comments
Open

GitRepository no longer works with 1.5.0 #1765

Szpadel opened this issue Mar 28, 2025 · 3 comments

Comments

@Szpadel
Copy link

Szpadel commented Mar 28, 2025

After upgrading to 1.5.0 gitrepository resources fail with error failed to checkout and determine revision: unable to clone 'ssh://git@example.com:2221/example/example.git': exec: "git": executable file not found in $PATH'

what might be not standard here is custom port used for git access and recurseSubmodules: true

@matheuscscp
Copy link
Member

The git binary is not present in 1.4.1 either, that's because we use gogit for talking the Git protocol, purely in Go.

docker run -it --rm --entrypoint /bin/sh ghcr.io/fluxcd/source-controller:v1.4.1
~ $ git
/bin/sh: git: not found
~ $ exit
docker run -it --rm --entrypoint /bin/sh ghcr.io/fluxcd/source-controller:v1.5.0
~ $ git
/bin/sh: git: not found
~ $ exit

@Szpadel
Copy link
Author

Szpadel commented Mar 28, 2025

So it looks like there is some incorrect reference introduced in code?

@matheuscscp
Copy link
Member

Can you please share your manifests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants