add git to the go fetcher

This commit is contained in:
Charlotte 🦝 Delenk 2022-08-18 08:57:37 +01:00
parent b8c2216317
commit 10983293d0
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,7 @@
, cacert , cacert
, pkgs , pkgs
, pkgsBuildBuild , pkgsBuildBuild
, git
}: }:
let let
@ -56,7 +57,7 @@ let
name = "${baseNameOf goPackagePath}_${version}"; name = "${baseNameOf goPackagePath}_${version}";
builder = ./fetch.sh; builder = ./fetch.sh;
inherit goPackagePath version; inherit goPackagePath version;
nativeBuildInputs = [ go jq ]; nativeBuildInputs = [ go jq git ];
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHashAlgo = null; outputHashAlgo = null;
outputHash = hash; outputHash = hash;

View file

@ -2,6 +2,8 @@ source $stdenv/setup
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
git config --global http.sslCAInfo $SSL_CERT_FILE
# Call once first outside of subshell for better error reporting # Call once first outside of subshell for better error reporting
go mod download "$goPackagePath@$version" go mod download "$goPackagePath@$version"