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 cf9bc0b commit b44bbf0Copy full SHA for b44bbf0
cmd/server/main.go
@@ -6,6 +6,7 @@ import (
6
"log/slog"
7
"net/http"
8
"os"
9
+ "runtime/debug"
10
"strings"
11
12
"github.com/spf13/cobra"
@@ -18,6 +19,14 @@ import (
18
19
20
var Version = "dev"
21
22
+func init() {
23
+ if Version == "dev" {
24
+ if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "(devel)" {
25
+ Version = info.Main.Version
26
+ }
27
28
+}
29
+
30
func main() {
31
rootCmd := &cobra.Command{
32
Use: "sysdig-mcp-server",
0 commit comments