mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 06:32:21 +08:00

* add dev mechanism for making backend unavailable * handle unavailable backend in html * fix ordering of /-/ routes * Add new loader to index.html * tweak light colours * fix readme * add error handling and error state * use setTimeout for the retry loop * easier on the comments:
13 lines
422 B
Bash
13 lines
422 B
Bash
#!/bin/bash
|
|
|
|
echo "Go mod cache: $(go env GOMODCACHE), $(ls -1 $(go env GOMODCACHE) | wc -l) items"
|
|
echo "Go build cache: $(go env GOCACHE), $(ls -1 $(go env GOCACHE) | wc -l) items"
|
|
|
|
# Need to build version into the binary so plugin compatibility works correctly
|
|
VERSION=$(jq -r .version package.json)
|
|
|
|
go build -v \
|
|
-ldflags "-X main.version=${VERSION}" \
|
|
-gcflags "all=-N -l" \
|
|
-o ./bin/grafana ./pkg/cmd/grafana
|