@@ -11,6 +11,7 @@ import (
11
11
"text/template"
12
12
"time"
13
13
14
+ "github.com/gnolang/gno/gnovm/pkg/version"
14
15
"github.com/gnolang/gno/tm2/pkg/commands"
15
16
)
16
17
@@ -23,9 +24,10 @@ Describe your issue in as much detail as possible here
23
24
24
25
### Your environment
25
26
26
- * Go version: {{.GoVersion}}
27
- * OS and CPU architecture: {{.Os}}/{{.Arch}}
28
- * Gno commit hash causing the issue: {{.Commit}}
27
+ * Gno version: {{ .GnoVersion }}
28
+ * Go version: {{ .GoVersion }}
29
+ * OS and CPU architecture: {{ .Os }}/{{ .Arch }}
30
+ * Gno commit hash causing the issue: {{ .Commit }}
29
31
30
32
### Steps to reproduce
31
33
@@ -62,10 +64,11 @@ func newBugCmd(io commands.IO) *commands.Command {
62
64
Name : "bug" ,
63
65
ShortUsage : "bug" ,
64
66
ShortHelp : "start a bug report" ,
65
- LongHelp : `opens https://github.com/gnolang/gno/issues in a browser.
67
+ LongHelp : `opens https://github.com/gnolang/gno/issues in a browser.
66
68
67
69
The new issue body is prefilled for you with the following information:
68
70
71
+ - Gno version (the output of "gno version")
69
72
- Go version (example: go1.22.4)
70
73
- OS and CPU architecture (example: linux/amd64)
71
74
- Gno commit hash causing the issue (example: f24690e7ebf325bffcfaf9e328c3df8e6b21e50c)
@@ -96,10 +99,11 @@ func execBug(cfg *bugCfg, args []string, io commands.IO) error {
96
99
}
97
100
98
101
bugReportEnv := struct {
99
- Os , Arch , GoVersion , Commit string
102
+ Os , Arch , GnoVersion , GoVersion , Commit string
100
103
}{
101
104
runtime .GOOS ,
102
105
runtime .GOARCH ,
106
+ version .Version ,
103
107
runtime .Version (),
104
108
getCommitHash (),
105
109
}
0 commit comments