Created
September 15, 2025 07:16
-
-
Save plus3x/cfc855856f52ab77e2e827f8f477d013 to your computer and use it in GitHub Desktop.
GitLab Development Kit configuration for Apple M1/M2 chips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config | |
# MacOS: Sequoia 15.6.1 (24G90) | |
# GitLab Development Kit: 0.2.19 (e1fef3f11) | |
# GitLab: 17.5.0 | |
### GitLab Development Kit START ### | |
# WITHOUT_BUILD_ID=1 - Reuired for M1/M2 to resovle configuration issue in Worhorse | |
alias gdk-fast-spec='GITLAB_TEST_EAGER_LOAD=1 ENABLE_SPRING=1 WITHOUT_BUILD_ID=1 bin/rspec' | |
# For Go 1.23+ on M1/M2 | |
export GOARCH=arm64 | |
# ICU 77 | |
export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c@77/lib/pkgconfig:$PKG_CONFIG_PATH" | |
export CGO_LDFLAGS="-L/opt/homebrew/opt/icu4c@77/lib -licui18n -licuuc -licudata" | |
export CGO_CFLAGS="-I/opt/homebrew/opt/icu4c@77/include" | |
# OpenSSL 3 | |
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig:$PKG_CONFIG_PATH" | |
export CGO_CFLAGS="$CGO_CFLAGS -I/opt/homebrew/opt/openssl@3/include" | |
export CGO_LDFLAGS="$CGO_LDFLAGS -L/opt/homebrew/opt/openssl@3/lib" | |
# PNG / JPEG (опционально, если используете uploads) | |
export CGO_CFLAGS="$CGO_CFLAGS -I/opt/homebrew/include" | |
export CGO_LDFLAGS="$CGO_LDFLAGS -L/opt/homebrew/lib" | |
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH" | |
# On Apple M1/M2 full path to socket should be shorten then 100 symbols | |
# Could be fixed by using short path to working directory, like use `/gdk`(3 symbols) instead of `/gitlab-development-kit`(22 symbols) | |
export GITALY_TEST_DIR=/tmp/gitaly-test | |
mkdir -p $GITALY_TEST_DIR | |
### GitLab Development Kit END ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment