Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/assets/social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions knowledgeprim/internal/cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func resolveVersion() string {
return Version
}
if info, ok := debug.ReadBuildInfo(); ok {
// go install sets Main.Version to the module version.
if v := info.Main.Version; v != "" && v != "(devel)" {
return v
}
for _, s := range info.Settings {
if s.Key == "vcs.revision" && len(s.Value) >= 7 {
return s.Value[:7]
Expand Down
4 changes: 4 additions & 0 deletions queueprim/internal/cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func resolveVersion() string {
return Version
}
if info, ok := debug.ReadBuildInfo(); ok {
// go install sets Main.Version to the module version.
if v := info.Main.Version; v != "" && v != "(devel)" {
return v
}
for _, s := range info.Settings {
if s.Key == "vcs.revision" && len(s.Value) >= 7 {
return s.Value[:7]
Expand Down
4 changes: 4 additions & 0 deletions stateprim/internal/cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func resolveVersion() string {
return Version
}
if info, ok := debug.ReadBuildInfo(); ok {
// go install sets Main.Version to the module version.
if v := info.Main.Version; v != "" && v != "(devel)" {
return v
}
for _, s := range info.Settings {
if s.Key == "vcs.revision" && len(s.Value) >= 7 {
return s.Value[:7]
Expand Down
4 changes: 4 additions & 0 deletions taskprim/internal/cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func resolveVersion() string {
return Version
}
if info, ok := debug.ReadBuildInfo(); ok {
// go install sets Main.Version to the module version.
if v := info.Main.Version; v != "" && v != "(devel)" {
return v
}
for _, s := range info.Settings {
if s.Key == "vcs.revision" && len(s.Value) >= 7 {
return s.Value[:7]
Expand Down
Loading