Skip to content
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

gogit: Add new ForceGoGitImplementation FeatureGate #452

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Oct 27, 2022

ForceGoGitImplementation ignores the value set for gitImplementation and ensures that go-git is used for all GitRepository objects. This can be used to confirm that Flux instances won't break if/when the libgit2 implementation was to be deprecated.

When enabled, libgit2 won't be initialized, nor will any git2go cgo code be called.

@pjbgf pjbgf added the area/git Git related issues and pull requests label Oct 27, 2022
@pjbgf pjbgf modified the milestones: GA, Bootstrap GA Oct 27, 2022
@pjbgf pjbgf marked this pull request as ready for review November 3, 2022 08:06
@pjbgf pjbgf requested a review from aryan9600 November 3, 2022 08:20
@pjbgf pjbgf self-assigned this Nov 3, 2022
Comment on lines 25 to 26
// ForceGoGitImplementation ignores the value set for gitImplementation
// and ensures that go-git is used for all GitRepository objects.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// ForceGoGitImplementation ignores the value set for gitImplementation
// and ensures that go-git is used for all GitRepository objects.
// ForceGoGitImplementation ignores the value set for gitImplementation
// of a GitRepository object and ensures that go-git is used for all git operations.

ForceGoGitImplementation ignores the value set for gitImplementation
and ensures that go-git is used for all GitRepository objects.
This can be used to confirm that Flux instances won't break if/when
the libgit2 implementation was to be deprecated.

When enabled, libgit2 won't be initialized, nor will any git2go cgo
code be called.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Copy link
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@pjbgf pjbgf merged commit b59fffa into fluxcd:main Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants