We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d368f commit 3784ffeCopy full SHA for 3784ffe
cmd/gosec/version.go
@@ -1,9 +1,5 @@
1
package main
2
3
-import (
4
- "runtime/debug"
5
-)
6
-
7
// Version is the build version
8
var Version string
9
@@ -19,7 +15,10 @@ var BuildDate string
19
15
// https://github.com/golang/go/issues/29814 gets resolved.
20
16
func prepareVersionInfo() {
21
17
if Version == "" {
22
- bi, _ := debug.ReadBuildInfo()
23
- Version = bi.Main.Version
18
+ // bi, _ := debug.ReadBuildInfo()
+ // Version = bi.Main.Version
+ // TODO use the debug information when it will provide more details
+ // It seems to panic with Go 1.13.
+ Version = "dev"
24
}
25
0 commit comments