Comments (10)
hi @ohle thanks for the feedback. Can you try it again after you pull #15 ?
from gitin.
The patch applies now, but the CMake error in libgit2 is still there:
git submodule -q foreach --recursive git reset -q --hard
git submodule update --init --recursive
if patch --dry-run -N -d /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 -p1 < patch/git2go.v27.patch >/dev/null; then \
patch -d /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 -p1 < patch/git2go.v27.patch; \
fi
patching file script/build-libgit2-static.sh
make -C /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 install-static
make[1]: Entering directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
./script/build-libgit2-static.sh
+ VENDORED_PATH=vendor/libgit2
+ cd vendor/libgit2
+ mkdir -p install/lib
+ mkdir -p build
+ cd build
+ cmake -DTHREADSAFE=ON -DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=../install -DUSE_EXT_HTTP_PARSER=OFF -DUSE_HTTPS=OFF -DUSE_NSEC=OFF -DUSE_SSH=OFF -DCURL=OFF -DUSE_GSSAPI=OFF -DUSE_BUNDLED_ZLIB=ON ..
CMake Error: The source directory "/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27/vendor/libgit2" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make[1]: *** [build-libgit2] Error 1
make[1]: Leaving directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
make: *** [build-libgit2] Error 2
from gitin.
hi @ohle , does $GOPATH/src/gopkg.in/libgit2/git2go.v27/vendor/libgit2
folder exists? Because libgit2 itself should contain CMakeLists.txt
file.
Somehow it can be failing on initializing
Line 43 in 680b327
Line 44 in 680b327
from gitin.
That was the problem. I don't know why those lines seemed to fail silently, but manually initializing the submodules in libgit2 helped.
However, now I seem to get linker errors:
[...]
go install --tags "static" ./...
can't load package: package gopkg.in/libgit2/git2go.v27: /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27/git_static.go: malformed #cgo argument: -I${SRCDIR}/vendor/libgit2/include
make[1]: *** [install-static] Error 1
make[1]: Leaving directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
make: *** [build-libgit2] Error 2
from gitin.
https://github.com/isacikgoz/gitin#installation, make sure cmake
and pkg-config
installed.
from gitin.
They are installed.
I'm closing this bug now because, while I still get the above errors, I can't reproduce them in a clean ubuntu docker.
BTW, @isacikgoz is there any reason the 0.1.5 release came without linux binaries?
from gitin.
Ah, sorry @ohle It will be added in a few hours, I was having some issues with my Linux machine.
Edit: Added 👍
from gitin.
I get into the same issue: CMakeLists.txt missing in libgit2.
The folder has 2 subdirs: build/ and install/
from gitin.
hello @lk-chen CMakeLists.txt
should be in libgit2 folder. If it is not, it may be a problem with git clone
or git submodule
commands. Maybe you can try to manually initialize submodules in $GOPATH/src/gopkg.in/libgit2/git2go
After that, you can build libgit2 with running ./script/install-libgit2.sh
in the git2go
folder. After these steps you should be able to go build
in gitin
folder.
from gitin.
I retried the git submodule
commands above and got no luck. Then I tried go get -d github.com/isacikgoz/gitin
again, and it works fine now.
from gitin.
Related Issues (20)
- Terminal's line-wrapping is changed HOT 2
- Stray "q" after quitting `gitin status` and `gitin log` HOT 2
- [Feature Request] - Flag to list branches by date HOT 4
- [REQUEST] Contribution guide for MacOS HOT 2
- [Bug] Dirty exit after back from viewing commit HOT 2
- [Feature Request] Search/checkout branches HOT 2
- [Feature Request] Multiple UI view modes HOT 2
- [Feature request] Discard unstaged changes from status HOT 3
- Proxy issue for image hosting HOT 1
- Add support searching by commit id HOT 7
- [Ignore] An issue for hosting images
- The next step for gitin
- Panic when selecting on empty search result HOT 2
- Issues with installing gitin HOT 8
- Add colour coding on gitin branch command HOT 1
- Unable to install from AUR of Manjaro HOT 2
- git2go 1.0 HOT 1
- Set up funding 💰 HOT 1
- feat(log): Add key shortcut to copy commit hash HOT 1
- Support git2go v31 / libgit2 1.1 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 gitin.