Skip to content

Commit

Permalink
debug: include version information in the tarball
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jul 31, 2024
1 parent fff86bf commit 37c0ce9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/sbctl/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"path/filepath"

"github.com/foxboron/sbctl"
"github.com/foxboron/sbctl/config"
"github.com/foxboron/sbctl/logging"
"github.com/goccy/go-yaml"
Expand Down Expand Up @@ -109,6 +110,10 @@ func ProduceDebugInformation(state *config.State) error {
if err := writeTw("config.json", configbj); err != nil {
return err
}

if err := writeTw("VERSION", []byte(sbctl.Version)); err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit 37c0ce9

Please sign in to comment.