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

Remove libgit2 and git2go from codebase #977

Merged
merged 6 commits into from
Dec 12, 2022
Merged

Remove libgit2 and git2go from codebase #977

merged 6 commits into from
Dec 12, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Dec 9, 2022

This PR removes the libgit2 implementation which was deprecated in v0.32.0,
resulting in a smaller code base and more streamlined build process.

Test image: ghcr.io/fluxcd/source-controller:rc-8005af8b.

Things of note:

Breaking changes:

  • Feature gate ForceGoGitImplementation has been deprecated and removed.

@pjbgf pjbgf added the area/git Git related issues and pull requests label Dec 9, 2022
@pjbgf pjbgf force-pushed the remove-libgit2 branch 2 times, most recently from f41e264 to 422e64f Compare December 9, 2022 15:21
@pjbgf pjbgf marked this pull request as ready for review December 9, 2022 15:25
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @pjbgf

@stefanprodan
Copy link
Member

Can you please mark this field as deprecated and no longer used please https://github.com/fluxcd/source-controller/blob/main/api/v1beta2/gitrepository_types.go#L98

.dockerignore Outdated
@@ -1 +1 @@
build/libgit2/
build/
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's have a newline here like before.

@darkowlzz
Copy link
Contributor

darkowlzz commented Dec 12, 2022

gitImplementation: libgit2
and
kubectl -n source-system wait gitrepository/large-repo-libgit2 --for=condition=ready --timeout=2m15s
have traces of libgit2 in tests.

Copy link
Contributor

@darkowlzz darkowlzz 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 f7a64b1 into main Dec 12, 2022
@pjbgf pjbgf deleted the remove-libgit2 branch December 12, 2022 15:54
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