mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 00:47:38 -06:00
78596a6756
Fixes #30144 Co-authored-by: dsotirakis <sotirakis.dim@gmail.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com> Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com> Co-authored-by: Will Browne <wbrowne@users.noreply.github.com> Co-authored-by: Leon Sorokin <leeoniya@gmail.com> Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com> Co-authored-by: spinillos <selenepinillos@gmail.com> Co-authored-by: Karl Persson <kalle.persson@grafana.com> Co-authored-by: Leonard Gram <leo@xlson.com>
26 lines
1.0 KiB
Makefile
26 lines
1.0 KiB
Makefile
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.3. DO NOT EDIT.
|
|
# All tools are designed to be build inside $GOBIN.
|
|
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
GOPATH ?= $(shell go env GOPATH)
|
|
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
|
GO ?= $(shell which go)
|
|
|
|
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
|
|
# will be used; reinstalling only if needed.
|
|
# For example for wire variable:
|
|
#
|
|
# In your main Makefile (for non array binaries):
|
|
#
|
|
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
|
|
#
|
|
#command: $(WIRE)
|
|
# @echo "Running wire"
|
|
# @$(WIRE) <flags/args..>
|
|
#
|
|
WIRE := $(GOBIN)/wire-v0.5.0
|
|
$(WIRE): $(BINGO_DIR)/wire.mod
|
|
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
|
@echo "(re)installing $(GOBIN)/wire-v0.5.0"
|
|
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wire.mod -o=$(GOBIN)/wire-v0.5.0 "github.com/google/wire/cmd/wire"
|
|
|