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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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