Skip to content

Commit

Permalink
Fix MacOS Dist (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Jul 13, 2023
1 parent b88e957 commit 0ba1b47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DistTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,14 @@ tasks:
desc: Builds Mac OS X 64 bit binaries
dir: "{{.DIST_DIR}}"
cmds:
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
- |
mkdir {{.PLATFORM_DIR}}
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
docker run -v `pwd`/..:/home/build -w /home/build \
-e CGO_ENABLED=1 \
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
--build-cmd "{{.BUILD_COMMAND}}" \
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
-p "{{.BUILD_PLATFORM}}"
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
Expand All @@ -218,13 +219,14 @@ tasks:
desc: Builds Mac OS X ARM64 binaries
dir: "{{.DIST_DIR}}"
cmds:
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
- |
mkdir {{.PLATFORM_DIR}}
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
docker run -v `pwd`/..:/home/build -w /home/build \
-e CGO_ENABLED=1 \
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
--build-cmd "{{.BUILD_COMMAND}}" \
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
-p "{{.BUILD_PLATFORM}}"
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
Expand Down

0 comments on commit 0ba1b47

Please sign in to comment.