mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 16:10:22 -06:00
Chore: Fix bingo variables for Windows (#73830)
* Chore: Fix bingo variables for Windows * make the change for Windows-only
This commit is contained in:
parent
09e496acfd
commit
f750c3194e
@ -2,7 +2,12 @@
|
|||||||
# All tools are designed to be build inside $GOBIN.
|
# All tools are designed to be build inside $GOBIN.
|
||||||
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||||
GOPATH ?= $(shell go env GOPATH)
|
GOPATH ?= $(shell go env GOPATH)
|
||||||
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
ifeq ($(OS),Windows_NT)
|
||||||
|
PATHSEP := $(if $(COMSPEC),;,:)
|
||||||
|
GOBIN ?= $(firstword $(subst $(PATHSEP), ,$(subst \,/,${GOPATH})))/bin
|
||||||
|
else
|
||||||
|
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
||||||
|
endif
|
||||||
GO ?= $(shell which go)
|
GO ?= $(shell which go)
|
||||||
|
|
||||||
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
|
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
|
||||||
|
Loading…
Reference in New Issue
Block a user