You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
998 B

Index: src/github.com/hyperledger/burrow/Makefile
--- src/github.com/hyperledger/burrow/Makefile.orig 2018-09-15 20:01:23.673632000 +0200
+++ src/github.com/hyperledger/burrow/Makefile 2018-09-15 20:02:27.318105000 +0200
@@ -111,11 +111,11 @@
# Output commit_hash but only if we have the git repo (e.g. not in docker build
.PHONY: commit_hash
commit_hash:
- @git status &> /dev/null && scripts/commit_hash.sh > commit_hash.txt || true
+ @echo "000000" >commit_hash.txt
# build all targets in github.com/hyperledger/burrow
.PHONY: build
-build: check build_burrow
+build: build_burrow
# build all targets in github.com/hyperledger/burrow with checks for race conditions
.PHONY: build_race
@@ -124,7 +124,7 @@
# build burrow
.PHONY: build_burrow
build_burrow: commit_hash
- go build -ldflags "-extldflags '-static' \
+ go build -x -ldflags "-extldflags '-static' \
-X github.com/hyperledger/burrow/project.commit=$(shell cat commit_hash.txt)" \
-o ${REPO}/bin/burrow ./cmd/burrow