Grafana building from source error (undefined: server.Initialize)

Good Morning,

I’ve been trying to modify Grafana for 3 days and doing a build again.

I have modified the LoginPage to put my company name just below the Grafana logo. But there is no way to recompile the code.

I have a windows and I have followed this tutorial: Installation - Building from source - 《Grafana v6.2 Documentation》 - 书栈网 · BookStack. But when I do: go run build.go setup it gives me this error:

$ go run build.go setup
Version: 8.3.0, Linux Version: 8.3.0, Package Iteration: 1634138282pre
go install -v -buildmode=exe ./pkg/cmd/grafana-server
github.com/grafana/grafana/pkg/login/social
github.com/grafana/grafana/pkg/services/oauthtoken
github.com/grafana/grafana/pkg/tsdb
github.com/grafana/grafana/pkg/api/pluginproxy
github.com/grafana/grafana/pkg/services/ngalert/eval
github.com/grafana/grafana/pkg/services/datasourceproxy
github.com/grafana/grafana/pkg/services/ngalert/state
github.com/grafana/grafana/pkg/services/ngalert/schedule
github.com/grafana/grafana/pkg/services/ngalert/api
github.com/grafana/grafana/pkg/services/ngalert
github.com/grafana/grafana/pkg/api
github.com/grafana/grafana/pkg/server
github.com/grafana/grafana/pkg/cmd/grafana-server/commands
# github.com/grafana/grafana/pkg/cmd/grafana-server/commands
pkg\cmd\grafana-server\commands\cli.go:168:12: undefined: server.Initialize
exit status 2
exit status 1
1 Like

are you still hitting this error, @andreuserrasastre

I am having a similar issue with:

go run build.go build

created an issue here: Build: go backend build fails on windows · Issue #40839 · grafana/grafana · GitHub