Use `go-env`

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
pull/3763/head
cyqsimon 4 weeks ago committed by GitHub
parent e0acc15214
commit 17daacbb0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +1,6 @@
SHELL := bash
GO ?= go
GOOS ?= $(shell $(GO) version | sed -E 's|^(.* )?([a-zA-Z0-9\-_]+)/[a-zA-Z0-9\-_]+( .*)?$$|\2|')
GOOS ?= $(shell $(GO) env GOOS)
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR := $(shell dirname $(MAKEFILE))

Loading…
Cancel
Save