Comments (4)
In your second example you're running 'go build', which is not going to work regardless of when you do it.
from git2go.
That is, if you're making 'go build' actually build git2go, it's not going to work no matter what. I you're building the corss-compiler after installing git2go, you've presumably made the timestamp of all the code in the go library/runtime be later than the build of git2go, so it tries to build it again, which is what won't work.
from git2go.
Thanks for the reply. Much appreciated.
I think you're making two separate points. The first point is do not try to build git2go using go build. I understand that, and I'm not doing that and never was doing that. The compilation failure I show which fails around git2.h occurs in the building of a sample app in package main located at sample app source path GOPATH/src/t/ (you can see this reflected in the shell prompt). This sample build is building an app that relies on previously built and installed git2go per your git2go README instructions. I'm sorry I was not more clear on that.
Your second point is the one that I think really matters. If I build the cross compilers after installing git2go , then building any sample app using the installed git2go will fail. I think that is what you mean.
Here is the successful Dockerfile in its entirety. Not shown now is the building of sample app that used git2go, which would have occurred after the last line (or in scripting in the container with "docker run -it tag bash" or some such).
https://gist.github.com/ae6rt/4074df9c41338feb9260
from git2go.
Yeah, I didn't notice you were building a different program with the build
command at first.
Go's assumption that you can always just rebuild with its own tool is what's hitting us here. The way to work around this would be to link dynamically but that's not a very nice option when following the main branch.
I am thinking of creating a branch to stay at libgit2 v0.22 (once it releases Real Soon Now) so you can use 'go build' to work around this (and partially solve #143), but it would require a release of libgit2 to exist on the system (though that shouldn't be a huge issue).
from git2go.
Related Issues (20)
- Clone with SSH URLs? HOT 1
- Allow libgit2 1.4.0 HOT 9
- Random `invalid pointer handle` using Managed Transport HOT 1
- Clone repo success but has uncorrect status
- Segfault when calling `index.AddAll`
- anyone tried to use bazel to build?
- Can I get the result of git show via git2go? HOT 1
- Push equivalent to clone mirror? HOT 1
- `fatal error: unexpected signal during runtime execution` in `Clone(...)` HOT 1
- build fail undefined: xxxx ... HOT 1
- Files are deleted after cloning HOT 2
- Missing v34 blocks the use of v35 HOT 1
- Is this repository still active? HOT 4
- Mapping examples between libgit2 and git2go in README need to be updated
- Multi architecture support
- How do I checkout a branch in a similar way than the CLI does? HOT 1
- Support for LibGit2 v1.6 HOT 4
- How to pass the equivalent of git push -o <string>?
- TestRemoteSSH fails with libgit2 1.5 with built in SSH support
- libgit.Clone produces empty directory, fails with `failed to stat path/to/repo/.git` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2go.