grafana / grafana-app-sdk

An SDK for developing apps for grafana using kubernetes-like storage and operators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`make build/plugin-backend` assumes `mage` is available in `PATH`

joeyorlando opened this issue · comments

I was trying to run tilt up for the grafana/gops-labels repo (which AFAIK was generated via grafana-app-sdk project init) and ran into this:

$ git clone git@github.com:grafana/gops-labels.git # starting from a fresh repo
$ tilt up

...
Running cmd: make build/plugin-backend
/bin/sh: mage: command not found
make: *** [build/plugin-backend] Error 127
Build Failed: Command "make build/plugin-backend" failed: exit status 2

We may want to enhance the Makefile template's deps target to also install mage. From the docs this might even be as simple as:

.PHONY: deps
deps: $(VENDOR)
++  git clone https://github.com/magefile/mage
++  cd mage
++  go run bootstrap.go