Skip to content

Commit

Permalink
fix: Fix version path in ldflag
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
  • Loading branch information
SergK committed Oct 13, 2023
1 parent 5734121 commit aebaafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ builds:
ldflags:
# use commit date instead of current date as main.date
# only needed if you actually use those things in your main package, otherwise can be ignored.
- -w -X github.com/sergk/tkn-graph/pkg/cmd/cliVersion={{.Version}}
- -w -X github.com/sergk/tkn-graph/pkg/cmd/version.cliVersion={{.Version}}

archives:
- name_template: >-
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BINARY_NAME=tkn-graph

# Versioning
GIT_DESCRIBE=$(shell git describe --tags --always --dirty)
LDFLAGS=-ldflags "-X $(PACKAGE)/cliVersion=$(GIT_DESCRIBE)"
LDFLAGS=-ldflags "-X $(PACKAGE)/version.cliVersion=$(GIT_DESCRIBE)"

override GCFLAGS +=all=-trimpath=${CURRENT_DIR}

Expand Down

0 comments on commit aebaafe

Please sign in to comment.