Skip to content

ci: Fix warnings about inconsistent deployment targets on macOS

Our macOS job spews turns of the following warning:

ld: warning: object file (/Users/gitlab/builds/djQLaC-y/1/gitlab-org/gitaly/_build/deps/libgit2/install/lib/libgit2.a(patch_parse.c.o)) was built for newer macOS version (12.6) than being linked (12.0)

This warning seems to come from CGo when we try to link gitaly-git2go against libgit2.a, where CGo and CMake seemingly chose different deployment targets. While seemingly harmless, those warnings are quite annoying given that they make the CI output basically unreadable.

Fix this warning by setting the MACOSX_DEPLOYMENT_TARGET variable, which should enforce a consistent target across the build.

Merge request reports