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

[BUG] #79

Closed
rbuckland opened this issue Jun 29, 2021 · 2 comments · Fixed by #84
Closed

[BUG] #79

rbuckland opened this issue Jun 29, 2021 · 2 comments · Fixed by #84
Labels
bug Something isn't working need-investigation

Comments

@rbuckland
Copy link

Describe the bug

Two issues:

1 . The documentation talks about a deb file for Debian/Ubuntu.

Download the .deb file from the releases page
sudo apt install ./turbogit_*_linux_amd64.deb

v1.3 and v2.0 do not have .deb files.
https://github.com/b4nst/turbogit/releases

  1. The binary .tar.gz does not work on debian-buster (out of the box - still investigating - missing the right libgit2-1.x )

Trying to put tug, into a docker container, the go binary

$ bin/tug 
bin/tug: error while loading shared libraries: libgit2.so.1.0: cannot open shared object file: No such file or directory
$ cat /etc/issue
Debian GNU/Linux 10 \n \l

The required binary seems installed.

$ sudo apt install libgit2-27
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgit2-27 is already the newest version (0.27.7+dfsg.1-0.2).
libgit2-27 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

To Reproduce

Expected behavior
The binary from releases, is static and has all libs embedded.

Actual behavior
Seems the Linux binary is missing a static link for libgit2

docker run -ti --rm debian:latest
apt-get update && apt-get install -y curl
curl -LO https://github.com/b4nst/turbogit/releases/download/v2.0.0/turbogit_v2.0.0_amd64_linux.tar.gz
tar xvfz turbo*.tar.gz
bin/tug

Versions

  • tug: v2.0.0
  • OS: debian-buster in docker
@rbuckland rbuckland added bug Something isn't working need-investigation labels Jun 29, 2021
@Nightreaver
Copy link

Nightreaver commented Jul 1, 2021

I can confirm this on Ubuntu Desktop LTS 20.04

the only available file is libgit2.so.28 , I cannot find a source for libgit2.so.1.0

workaround (for me) sudo ln -s /usr/lib/x86_64-linux-gnu/libgit2.so.28 /usr/lib/x86_64-linux-gnu/libgit2.so.1.0

@b4nst
Copy link
Owner

b4nst commented Jul 1, 2021

Yup, sorry for that I did not have time to work on tug recently. The release process is totally broken right now. Turbogit is already compatible with libgit2 1.1.x, I just have to bump the lib, rework the release process and clean everything. I will prioritize that and do it as soon as I find some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants