Closed bshaffer closed 11 months ago
You need to follow the instructions from https://github.com/splitsh/lite#manual-installation
Thank you, Fabien. I tried for literal hours following the README and I still can't get it to work. Is there any way you could provide slightly more guidance?
One of the issues is that I've turned modules off via go env -w GO111MODULE=off
, so git mod tidy
throws an error.
I was able to fix this by compiling libgit2
from source so that I could install 1.5
(rather than 1.1
, which is the version installed by default via apt
on Ubuntu 22.06, which is the latest version supported by Github Actions).
In case it's helpful to anyone else, this is what worked for me:
jobs:
splitsh:
name: SplitSH
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: /usr/local/lib
steps:
- name: Clone libgit2
uses: actions/checkout@master
with:
repository: libgit2/libgit2
ref: v1.5.1
path: libgit2
- name: Install libgit2
run: |
mkdir libgit2/build && cd libgit2/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
sudo cmake --build . --target install
- name: Compile splitsh
run: |
go env -w GO111MODULE=off
go get github.com/splitsh/lite
go build -o /usr/local/bin/splitsh-lite github.com/splitsh/lite
This places the splitsh-lite
binary in /usr/local/bin
, and everything worked as expected from there.
I am getting the following error when compiling
splitsh
on github. here is my script:My github action is using
ubuntu-latest
. I think the issue has to do with the new tag forv2.0.0
. I am actively debugging it, and plan to either follow the guide in https://github.com/splitsh/lite/issues/64 or try to roll it back.I just wanted to submit this issue here also, in case it's helpful to someone else!