File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,14 @@ tasks:
194
194
desc : Builds Mac OS X 64 bit binaries
195
195
dir : " {{.DIST_DIR}}"
196
196
cmds :
197
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
197
198
- |
198
199
mkdir {{.PLATFORM_DIR}}
199
200
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
200
201
docker run -v `pwd`/..:/home/build -w /home/build \
201
202
-e CGO_ENABLED=1 \
202
203
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
203
- --build-cmd "{{.BUILD_COMMAND}}" \
204
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
204
205
-p "{{.BUILD_PLATFORM}}"
205
206
206
207
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
@@ -218,13 +219,14 @@ tasks:
218
219
desc : Builds Mac OS X ARM64 binaries
219
220
dir : " {{.DIST_DIR}}"
220
221
cmds :
222
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
221
223
- |
222
224
mkdir {{.PLATFORM_DIR}}
223
225
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
224
226
docker run -v `pwd`/..:/home/build -w /home/build \
225
227
-e CGO_ENABLED=1 \
226
228
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
227
- --build-cmd "{{.BUILD_COMMAND}}" \
229
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
228
230
-p "{{.BUILD_PLATFORM}}"
229
231
230
232
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
You can’t perform that action at this time.
0 commit comments