-
Notifications
You must be signed in to change notification settings - Fork 70
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 #468
Conversation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @pjbgf 🏅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 awesome work coming together @pjbgf (& @aryan9600)
Two tiny nits.
The [`gitImplementation` field][source-docs] in the referenced `GitRepository` is now ignored. All | ||
reconciliations are now executed using the `go-git` implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The [`gitImplementation` field][source-docs] in the referenced `GitRepository` is now ignored. All | |
reconciliations are now executed using the `go-git` implementation. | |
The [`gitImplementation` field][source-docs] in the referenced `GitRepository` is ignored. All | |
reconciliations are executed using the `go-git` implementation. |
|
||
# Some dependencies have to installed | ||
# for the target platform: https://github.com/tonistiigi/xx#go--cgo | ||
RUN xx-apk add musl-dev gcc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref recommends explicit declaration of CGO_ENABLED
.
In addition: might be worth taking note of a brief "why" for the CGO dependency.
Successfully tested the rc image against:
|
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This PR removes the
libgit2
implementation which was deprecated in v0.27.0,resulting in a smaller code base and more streamlined build process.
Test image:
ghcr.io/fluxcd/image-automation-controller:rc-95ace68b
.Things of note:
Breaking changes:
ForceGoGitImplementation
has been deprecated and removed.