aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2022-12-11 11:44:32 +0100
committerGitHub <noreply@github.com>2022-12-11 11:44:32 +0100
commitf62ac395ce756993cbdd8e502e533e1863f2b1df (patch)
tree307cd5490cb36380b67ccb20b840519c3e0c8bf5
parentc7050e7c96c49b94ec0033255aed302081ee145e (diff)
parent223e7321561147bb4f56e442ca8f84b7453e131e (diff)
downloadgo-git-f62ac395ce756993cbdd8e502e533e1863f2b1df.tar.gz
Merge pull request #625 from pjbgf/bump-sha1cd-nocgo
Fix error when building with `CGO_ENABLED=0`
-rw-r--r--.github/workflows/git.yml5
-rw-r--r--go.mod2
-rw-r--r--go.sum4
3 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/git.yml b/.github/workflows/git.yml
index fef2127..ba664a2 100644
--- a/.github/workflows/git.yml
+++ b/.github/workflows/git.yml
@@ -38,3 +38,8 @@ jobs:
- name: Test
run: make test-coverage
+
+ - name: Build go-git with CGO disabled
+ run: go build ./...
+ env:
+ CGO_ENABLED: 0
diff --git a/go.mod b/go.mod
index b214c8a..9a9fa19 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
github.com/jessevdk/go-flags v1.5.0
github.com/kevinburke/ssh_config v1.2.0
- github.com/pjbgf/sha1cd v0.2.0
+ github.com/pjbgf/sha1cd v0.2.3
github.com/pkg/errors v0.9.1 // indirect
github.com/sergi/go-diff v1.1.0
github.com/skeema/knownhosts v1.1.0
diff --git a/go.sum b/go.sum
index 2c00f00..35b347b 100644
--- a/go.sum
+++ b/go.sum
@@ -45,8 +45,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=
github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
-github.com/pjbgf/sha1cd v0.2.0 h1:gIsJVwjbRviE4gydidGztxH1IlJQoYBcCrwG4Dz8wvM=
-github.com/pjbgf/sha1cd v0.2.0/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M=
+github.com/pjbgf/sha1cd v0.2.3 h1:uKQP/7QOzNtKYH7UTohZLcjF5/55EnTw0jO/Ru4jZwI=
+github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=