Skip to content

Commit

Permalink
Fix latest version tag (#3809)
Browse files Browse the repository at this point in the history
* Fix latest version tag

* Add --match
  • Loading branch information
super-harsh authored Feb 22, 2024
1 parent 7be93b9 commit 5a664e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ vars:
sh: "{{.SCRIPTS_ROOT}}/build_version.py v2"

LATEST_VERSION_TAG:
sh: git describe --tags $(git rev-list --tags=v2* --max-count=1)
sh: git describe --tags $(git rev-list --tags='v2*' --max-count=1) --match 'v2*'

VERSION_FLAGS: '"-X {{.PACKAGE}}/internal/version.BuildVersion={{.VERSION}}"'
LDFLAGS: -ldflags {{.VERSION_FLAGS}}
Expand Down

0 comments on commit 5a664e1

Please sign in to comment.