Skip to content

Commit

Permalink
gitaly: Embed git binaries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
srhb authored and yayayayaka committed Oct 28, 2024
1 parent 77804e9 commit b5315bf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit b5315bf

Please sign in to comment.