Fix unreliable GOOS detection (#3763)

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
cyqsimonandJunegunn Choi authored and GitHub committed 2024-05-02 20:52:27 +09:00
1 parent 260a65b0fb
commit dba1644518
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
SHELL := bash
GO ?= go
GOOS ?= $(word 1, $(subst /, " ", $(word 4, $(shell go version))))
GOOS ?= $(shell $(GO) env GOOS)
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR := $(shell dirname $(MAKEFILE))