@@ -131,11 +131,12 @@ tasks:
131
131
desc : Builds Linux ARMv6 binaries
132
132
dir : " {{.DIST_DIR}}"
133
133
cmds :
134
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
134
135
- |
135
136
docker run -v `pwd`/..:/home/build -w /home/build \
136
137
-e CGO_ENABLED=1 \
137
138
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
138
- --build-cmd "{{.BUILD_COMMAND}}" \
139
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
139
140
-p "{{.BUILD_PLATFORM}}"
140
141
141
142
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
@@ -172,7 +173,7 @@ tasks:
172
173
#
173
174
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
174
175
# build we select the debian10 based container.
175
- CONTAINER_TAG : " {{.GO_VERSION}}-armel-debian10 "
176
+ CONTAINER_TAG : " {{.GO_VERSION}}-armel-debian11 "
176
177
PACKAGE_PLATFORM : " Linux_ARMv6"
177
178
PACKAGE_NAME : " {{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
178
179
@@ -201,11 +202,12 @@ tasks:
201
202
desc : Builds Mac OS X 64 bit binaries
202
203
dir : " {{.DIST_DIR}}"
203
204
cmds :
205
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
204
206
- |
205
207
docker run -v `pwd`/..:/home/build -w /home/build \
206
208
-e CGO_ENABLED=1 \
207
209
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
208
- --build-cmd "{{.BUILD_COMMAND}}" \
210
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
209
211
-p "{{.BUILD_PLATFORM}}"
210
212
211
213
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
@@ -235,11 +237,12 @@ tasks:
235
237
desc : Builds Mac OS X ARM64 binaries
236
238
dir : " {{.DIST_DIR}}"
237
239
cmds :
240
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
238
241
- |
239
242
docker run -v `pwd`/..:/home/build -w /home/build \
240
243
-e CGO_ENABLED=1 \
241
244
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
242
- --build-cmd "{{.BUILD_COMMAND}}" \
245
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
243
246
-p "{{.BUILD_PLATFORM}}"
244
247
245
248
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
0 commit comments