Build go-bindata in a tmpdir

This commit is contained in:
Jordan Liggitt 2020-03-20 21:27:06 +00:00
parent 6ef5a842ab
commit 001f81e3b3

View File

@ -28,7 +28,10 @@ TEMPLATES_PACKAGE="pages"
FORCE="${FORCE:-}" # Force assets to be rebuilt if FORCE=true
# Install while in a temp dir to avoid polluting go.mod/go.sum
pushd "${TMPDIR:-/tmp}" > /dev/null
go get -u github.com/kevinburke/go-bindata/...
popd > /dev/null
build_asset () {
local package=$1