Fix unreliable GOOS detection (#3763)

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
pull/3766/head
cyqsimon 3 weeks ago committed by GitHub
parent 260a65b0fb
commit dba1644518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save