Skip to content
Permalink
Browse files

[skip changelog] Fix release process (#1163)

The current release process uses git to get the tag at the current
commit. It might happen that are are multiple tags when calling that
command, in cases the rc and the final release are done on the same
commit, that would make the build process to fail.

This fixes that issue by taking only one tag.
  • Loading branch information
silvanocerza committed Feb 1, 2021
1 parent d92816b commit c40f1e55b2eeda27ed4fa9382488aab01ea89ee9
Showing with 1 addition and 1 deletion.
  1. +1 −1 Taskfile.yml
@@ -212,7 +212,7 @@ vars:
TIMESTAMP_SHORT:
sh: echo "{{now | date "20060102"}}"
TAG:
sh: echo "`git tag --points-at=HEAD 2> /dev/null`"
sh: echo "`git tag --points-at=HEAD 2> /dev/null | head -n1`"
VERSION: "{{ if .NIGHTLY }}nightly-{{ .TIMESTAMP_SHORT }}{{ else if .TAG }}{{ .TAG }}{{ else }}{{ .PACKAGE_NAME_PREFIX }}git-snapshot{{ end }}"
LDFLAGS: >
-ldflags

0 comments on commit c40f1e5

Please sign in to comment.