mirror of https://github.com/grafana/grafana
Don't remove DWARF info from Go binaries in dev (#100328)
Only ask the linker to strip DWARF information if we're not in dev, to avoid seeing stuff like this when using delve: ~ $ dlv attach $(pgrep grafana) (dlv) l main.main Command failed: location "main.main" not found After this change: ~ $ dlv attach $(pgrep grafana) Type 'help' for list of commands. (dlv) l main.main Showing /home/justin/code/grafana/pkg/cmd/grafana/main.go:23 (PC: 0xac93533) 18: var commit = gcli.DefaultCommitValue 19: var enterpriseCommit = gcli.DefaultCommitValue 20: var buildBranch = "main" 21: var buildstamp string 22: 23: func main() { 24: app := MainApp() 25: 26: if err := app.Run(os.Args); err != nil {pull/100363/head
parent
68700e3d7d
commit
02caf915a5
Loading…
Reference in new issue