Skip to content

Commit 69bcbfe

Browse files
committed
build: update makefile
1 parent b408208 commit 69bcbfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ COVERAGE_DIR := .coverage
1717
CGO_ENABLED := 0
1818

1919
# Version information (from git tags and commit)
20-
VERSION := $(shell git describe --tags --always --dirty 2>NUL || echo dev)
21-
COMMIT := $(shell git rev-parse --short HEAD 2>NUL || echo unknown)
22-
BUILD_TIME := $(shell git log -1 --format=%cI 2>NUL || echo unknown)
20+
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
21+
COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
22+
BUILD_TIME := $(shell git log -1 --format=%cI 2>/dev/null || echo unknown)
2323

2424
# Optimization flags for smallest possible binary
2525
GCFLAGS := -gcflags="all=-l"

0 commit comments

Comments
 (0)