Fixed bug of insufficient isolation of build environment

This commit is contained in:
Jakub Matys 2018-10-11 16:23:57 +02:00
parent 3b696d677e
commit 95f6b78b6f
2 changed files with 3 additions and 4 deletions

View File

@ -7,8 +7,6 @@ LDFLAGS := -X blockbook/common.version=$(VERSION) -X blockbook/common.gitcommit=
BLOCKBOOK_SRC := $(GOPATH)/src/blockbook
ARGS ?=
export BLOCKBOOK_SRC
all: build tools
build: prepare-sources generate-data
@ -36,7 +34,8 @@ test-all: prepare-sources generate-data
prepare-sources:
@ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)
[ -d $(BLOCKBOOK_SRC) ] || cp -r /src $(BLOCKBOOK_SRC)
[ -d $(BLOCKBOOK_SRC) ] && rm -rf $(BLOCKBOOK_SRC)
cp -r /src $(BLOCKBOOK_SRC)
$(MAKE) prepare-vendor
prepare-vendor:

View File

@ -14,7 +14,7 @@ shift 2
mkdir -p build
cp -r /src/build/templates build
cp -r /src/configs .
ln -s /src/ /go/src/blockbook
mkdir -p /go/src/blockbook/build && cp -r /src/build/tools /go/src/blockbook/build/tools
go run build/templates/generate.go $coin
# backend