grafana / grafana-app-sdk

An SDK for developing apps for grafana using kubernetes-like storage and operators
Apache License 2.0
48 stars 8 forks source link

Add preflight checks for clearer failures and reference go.mod where possible #384

Closed unlikelyzero closed 2 months ago

unlikelyzero commented 3 months ago

Closes: https://github.com/grafana/grafana-app-sdk/issues/383

It seems like go has a general issue with forward versioning as seen here: https://github.com/golang/go/discussions/55092 and the gvm project does not look to be healthy.

Until some of that dust settles, it makes sense to add a preflight check to ensure that this repo fails before buildtime if the build environment is wrong.

  1. Add a preflight check such that go is detected in the PATH
  2. Adds a preflight check such that go version mismatches are more explicit
  3. Updates CI to reference go.mod to prevent heartburn and headaches
CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.