Go get grafana for specific version not working in go.1.16.3

I am trying to get the grafana source with “go get” like: go get github.com/grafana/grafana@v8.2.5 but it never works. It gives an error as: go get: github.com/grafana/grafana@v8.2.5: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v8.
I need to get a specific Grafana version V8.2.5
Can someone help? I don’t want to git clone Grafana. (edited)
My go version and OS is: go version go1.16.3 linux/s390x

The docs recommend not using go get:

Warning: Do not use go get to download Grafana. Recent versions of Go have added behavior which isn’t compatible with the way the Grafana repository is structured.


Alright. Thanks. I was able to get my Grafana build working (from source) with a git clone.
Here is what I did:
“git clone ssh://github.com/grafana/grafana.git --branch v8.0.0”


1 Like