Skip to content

Commit 0bf3ebb

Browse files
authored
Fix the version command output while releasing (#159)
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent e264cf0 commit 0bf3ebb

17 files changed

+21
-21
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ builds:
1212
- -tags=netgo
1313
ldflags:
1414
- "-s -w"
15-
- "-X github.com/StacklokLabs/toolhive/cmd/thv.Version={{ .Version }}"
16-
- "-X github.com/StacklokLabs/toolhive/cmd/thv.Commit={{ .Commit }}"
17-
- "-X github.com/StacklokLabs/toolhive/cmd/thv.BuildDate={{ .Date }}"
15+
- "-X github.com/StacklokLabs/toolhive/cmd/thv/app.Version={{ .Env.VERSION }}"
16+
- "-X github.com/StacklokLabs/toolhive/cmd/thv/app.Commit={{ .Env.COMMIT }}"
17+
- "-X github.com/StacklokLabs/toolhive/cmd/thv/app.BuildDate={{ .Date }}"
1818
goos:
1919
- linux
2020
# - windows

cmd/thv/app/commands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Package cli provides the entry point for the toolhive command-line application.
2-
package cli
1+
// Package app provides the entry point for the toolhive command-line application.
2+
package app
33

44
import (
55
"fmt"

cmd/thv/app/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"fmt"

cmd/thv/app/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"fmt"

cmd/thv/app/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"encoding/json"

cmd/thv/app/restart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/run_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"encoding/json"

cmd/thv/app/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"fmt"

cmd/thv/app/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"context"

cmd/thv/app/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package app
22

33
import (
44
"fmt"

cmd/thv/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ package main
44
import (
55
"os"
66

7-
cli "github.com/StacklokLabs/toolhive/cmd/thv/app"
7+
"github.com/StacklokLabs/toolhive/cmd/thv/app"
88
"github.com/StacklokLabs/toolhive/pkg/logger"
99
)
1010

1111
func main() {
1212
// Initialize the logger system
1313
logger.Initialize()
1414

15-
if err := cli.NewRootCmd().Execute(); err != nil {
15+
if err := app.NewRootCmd().Execute(); err != nil {
1616
logger.Log.Error("%v, %v", os.Stderr, err)
1717
os.Exit(1)
1818
}

0 commit comments

Comments
 (0)