gitaly: Embed git binaries

gitaly now embeds git binaries in itself during the build

https://gitlab.com/gitlab-org/gitaly/-/blob/10fd91391a7c30ca54ec81eea881740cfdee8b0a/packed_binaries.go#L22

These are meant to be built by the `Makefile` target
`install-bundled-git` but this produces binaries with different names,
and we're also referring to this version of git throughout the NixOS
module, so we hack this by copying over the binaries from the deprecated
`git` target with which we're building gitaly-git.
This commit is contained in:
Sarah Brofeldt
2024-10-28 11:17:04 +01:00
committed by Yaya
parent 77804e950a
commit b5315bf732
@@ -46,6 +46,9 @@ buildGoModule ({
preConfigure = ''
mkdir -p _build/bin
cp -r ${auxBins}/bin/* _build/bin
for f in ${git}/bin/git-*; do
cp "$f" "_build/bin/gitaly-$(basename $f)";
done
'';
outputs = [ "out" ];