From c12c55da96eda0611f5f9d323a67cd9aa98c932e Mon Sep 17 00:00:00 2001 From: Asgaut Eng Date: Tue, 24 Mar 2020 22:18:03 +0100 Subject: [PATCH] Fix 'nil' file created by Makefile on Windows (#7224) The /dev/null device on Windows is a virtual file named "nul" not "nil". This fix works under both cmd.exe and Powershell. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ec767997..e7889e89d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ifeq ($(OS), Windows_NT) - VERSION := $(shell git describe --exact-match --tags 2>nil) + VERSION := $(shell git describe --exact-match --tags 2>nul) HOME := $(HOMEPATH) CGO_ENABLED ?= 0 export CGO_ENABLED