Fix unreliable GOOS detection (#3763)

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
cyqsimon
2024-05-02 19:52:27 +08:00
committed by GitHub
parent 260a65b0fb
commit dba1644518

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))