Fix issue with git during build
Git is reporting fatal: detected dubious ownership in repository at '/src
This commit is contained in:
parent
c1256d22e9
commit
97f1a41e55
@ -1,6 +1,6 @@
|
|||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
VERSION ?= devel
|
VERSION ?= devel
|
||||||
GITCOMMIT = $(shell cd /src && git describe --always --dirty)
|
GITCOMMIT = $(shell cd /src && git config --global --add safe.directory /src && git describe --always --dirty)
|
||||||
BUILDTIME = $(shell date --iso-8601=seconds)
|
BUILDTIME = $(shell date --iso-8601=seconds)
|
||||||
LDFLAGS := -X github.com/trezor/blockbook/common.version=$(VERSION) -X github.com/trezor/blockbook/common.gitcommit=$(GITCOMMIT) -X github.com/trezor/blockbook/common.buildtime=$(BUILDTIME)
|
LDFLAGS := -X github.com/trezor/blockbook/common.version=$(VERSION) -X github.com/trezor/blockbook/common.gitcommit=$(GITCOMMIT) -X github.com/trezor/blockbook/common.buildtime=$(BUILDTIME)
|
||||||
BLOCKBOOK_BASE := $(GOPATH)/src/github.com/trezor
|
BLOCKBOOK_BASE := $(GOPATH)/src/github.com/trezor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user