Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c40f1e5

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.
1 parent d92816b commit c40f1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Taskfile.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ vars:
212212
TIMESTAMP_SHORT:
213213
sh: echo "{{now | date "20060102"}}"
214214
TAG:
215-
sh: echo "`git tag --points-at=HEAD 2> /dev/null`"
215+
sh: echo "`git tag --points-at=HEAD 2> /dev/null | head -n1`"
216216
VERSION: "{{ if .NIGHTLY }}nightly-{{ .TIMESTAMP_SHORT }}{{ else if .TAG }}{{ .TAG }}{{ else }}{{ .PACKAGE_NAME_PREFIX }}git-snapshot{{ end }}"
217217
LDFLAGS: >
218218
-ldflags

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /