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:
parent
9b9a84964b
commit
c12c55da96
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
|
||||||
|
|
Loading…
Reference in New Issue