We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509b49d commit 9aab852Copy full SHA for 9aab852
DistTasks.yml
@@ -131,11 +131,12 @@ tasks:
131
desc: Builds Linux ARMv6 binaries
132
dir: "{{.DIST_DIR}}"
133
cmds:
134
+ # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
135
- |
136
docker run -v `pwd`/..:/home/build -w /home/build \
137
-e CGO_ENABLED=0 \
138
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
- --build-cmd "{{.BUILD_COMMAND}}" \
139
+ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
140
-p "{{.BUILD_PLATFORM}}"
141
142
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
0 commit comments