-
Notifications
You must be signed in to change notification settings - Fork 315
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
Cross-compiling projects that are using git2go #324
Comments
I've been looking into xgo, which allows for cross-compilation of Go with CGO components. The missing piece to get xgo working with git2go is support for CMake (karalabe/xgo#49). I'm hoping soon to have a chance to take a stab at a PR. |
It's awesome to hear that others interested in this as well! I've also thought about using xgo, but then saw the CMake limitation as mentioned in here, and decided to try tackling it from a different tangent. So far I got static build of git2go and its dependencies on linux-amd64 with multiarch/crossbuild. I used their image as the base, and scripted the build for the libraries. However, I am not sure of how I can do the same for other platforms. I opened an issue with them regarding this to ask for suggestions. |
Hi Calvin, have you been able to create cross platform static builds of git2go? I'm particularly interested in a build for Windows 10. |
Hey @CoolHandDev, unfortunately I was not able to get it working! I was able to get static builds from MacOS to amd64 targets, but even that was a hassle so I didn't experiment any further. It might be too late at this point, but if you are performing read-only manipulations, it might be worth looking at go-git which doesn't depend on any C libraries AFAIK. |
I was wondering what would be the pipeline for cross-compiling a project that is using git2go? My knowledge with compilers is minimal, and to my understanding cross-compiling external libraries is non-trivial.
The text was updated successfully, but these errors were encountered: