Fix build

This commit is contained in:
Luke Kysow
2020-04-24 14:43:06 -07:00
parent 12801ddaf5
commit 4fa32f8906
2 changed files with 8 additions and 2 deletions

View File

@@ -11,7 +11,13 @@ rm -rf output/*
if ! which gox > /dev/null; then
echo "-> installing gox..."
# Need to run go get in a separate dir
# so it doesn't modify our go.mod.
SRC_DIR=$(pwd)
cd $(mktemp -d)
go mod init example.com/m
go get -u github.com/mitchellh/gox
cd "$SRC_DIR"
fi
# build
@@ -41,4 +47,4 @@ echo ""
echo ""
echo "-----------------------------------"
echo "Output:"
ls -alh output/
ls -alh output/