From 6d28e7534c4f40568c7e013466bb4d58a5c9b4f2 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 1 Dec 2021 11:52:36 +0300 Subject: [PATCH] Makefile: add `unsupported` to docker windows image tag and bin version --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2099b5248b..2abeafe93b 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,9 @@ UNITWORKDIR = "/var/lib/neo-go" DC_FILE=.docker/docker-compose.yml +GOOS ?= $(shell go env GOOS) REPO ?= "$(shell go list -m)" -VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')" +VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')$(shell if [ "$(GOOS)" = "windows" ]; then echo "_unsupported"; fi)" BUILD_FLAGS = "-X '$(REPO)/pkg/config.Version=$(VERSION)'" IMAGE_REPO=nspccdev/neo-go