Skip to content

Commit c95d0ec

Browse files
committed
Install golang, comments
1 parent 4f3c5d5 commit c95d0ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/update-subtree.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,15 @@ jobs:
8585
if: ${{ env.SUBTREE_PR_EXISTS == 'no' }}
8686
run: |
8787
cd splitsh-lite
88-
sudo apt-get install -y libgit2-dev
88+
sudo apt-get install -y golang libgit2-dev
89+
# git2go upstream hasn't been updated to more recent versions of
90+
# libgit2, so using a fork that does stay up to date
8991
sed -i 's#github.com/libgit2/git2go#github.com/jeffwelling/git2go#' go.mod splitter/*
92+
# may need to adjust "v37" to a higher number per
93+
# https://github.com/jeffWelling/git2go?tab=readme-ov-file#which-go-version-to-use
94+
# depening on the libgit2 version being installed
9095
sed -i -e 's/v34/v37/g' go.mod splitter/*.go
96+
# v37.0.0 had issues that weren't fully fixed until v37.0.4
9197
sed -i 's/v37.0.0/v37.0.4/' go.mod
9298
go mod tidy
9399
go build -o splitsh-lite github.com/splitsh/lite

0 commit comments

Comments
 (0)