Skip to content

Commit

Permalink
Fix goreleaser ldflags for version
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jan 26, 2024
1 parent d6fb45b commit 1473888
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ builds:
- main: .
binary: catalog-cd
ldflags:
- -s -w -X internal.cmd.Version={{.Version}}
- -s -w -X github.com/openshift-pipelines/catalog-cd/internal/cmd.Version={{.Version}}
env:
- CGO_ENABLED=0
flags:
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
tkncli "github.com/tektoncd/cli/pkg/cli"
)

// Version is provided by govvv at compile-time
// Version is provided at compile-time
var Version string

func NewRootCmd(stream *tkncli.Stream) *cobra.Command {
Expand Down

0 comments on commit 1473888

Please sign in to comment.