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.
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
|||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
VERSION := $(shell git describe --exact-match --tags 2>nil)
|
VERSION := $(shell git describe --exact-match --tags 2>nul)
|
||||||
HOME := $(HOMEPATH)
|
HOME := $(HOMEPATH)
|
||||||
CGO_ENABLED ?= 0
|
CGO_ENABLED ?= 0
|
||||||
export CGO_ENABLED
|
export CGO_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user