esnet / gdg

Grafana Dashboard Manager
https://software.es.net/gdg/
Other
344 stars 34 forks source link

[BUG] `go install` failed with v0.5.2 #248

Closed hfudev closed 8 months ago

hfudev commented 8 months ago

To Reproduce Steps to reproduce the behavior:

  1. Run go install github.com/esnet/gdg@v0.5.2

Error message:

go: github.com/esnet/gdg@v0.5.2: module github.com/esnet/gdg@v0.5.2 found, but does not contain package github.com/esnet/gdg

go install github.com/esnet/gdg@v0.5.1 installed correctly.

safaci2000 commented 8 months ago

Ah, nice catch. I need to update the documentation. There's two binaries that are part of gdg now, so to install gdg it's

go install github.com/esnet/gdg/cmd/gdg@v0.5.2

If you want to use the template generator:

go install github.com/esnet/gdg/cmd/gen@v0.5.2

All the packaged versions name the binary gdg-generate. If you use go, it'll be called gen instead. I'll update on the next release so if you're using go to install this, it's consistent with everything else.

hfudev commented 8 months ago

Got it, thanks!