Skip to content

Commit 37c0ce9

Browse files
committed
debug: include version information in the tarball
Signed-off-by: Morten Linderud <[email protected]>
1 parent fff86bf commit 37c0ce9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/sbctl/debug.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"os"
1010
"path/filepath"
1111

12+
"github.com/foxboron/sbctl"
1213
"github.com/foxboron/sbctl/config"
1314
"github.com/foxboron/sbctl/logging"
1415
"github.com/goccy/go-yaml"
@@ -109,6 +110,10 @@ func ProduceDebugInformation(state *config.State) error {
109110
if err := writeTw("config.json", configbj); err != nil {
110111
return err
111112
}
113+
114+
if err := writeTw("VERSION", []byte(sbctl.Version)); err != nil {
115+
return err
116+
}
112117
return nil
113118
}
114119

0 commit comments

Comments
 (0)