From 95f189dd292ec3918f855c176e2e86d6d50bfb7d Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Mon, 1 Feb 2021 17:10:24 +0100 Subject: [PATCH] [skip changelog] Fix release process 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. --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index d382994e1e2..cab8fcc4c8d 100755 --- a/Taskfile.yml +++ b/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