Makefile: quote config.Version

Accept strings with spaces.
This commit is contained in:
Evgenii Stratonikov 2020-04-01 18:33:32 +03:00
parent 98012fde16
commit 111d7eecdd

View file

@ -12,7 +12,7 @@ DC_FILE=.docker/docker-compose.yml
REPO ?= "$(shell go list -m)"
VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')"
BUILD_FLAGS = "-X $(REPO)/pkg/config.Version=$(VERSION)"
BUILD_FLAGS = "-X '$(REPO)/pkg/config.Version=$(VERSION)'"
IMAGE_REPO=nspccdev/neo-go