Skip to content

Commit d5acda4

Browse files
committed
Make version identification command used for build handle overlapping tags
Release builds are identified using the Git tag. It might occur that multiple tags are made at the same commit (as is common with prereleases). The previous command returned both tags, which broke the build system. The updated command returns only a single tag.
1 parent 62537b9 commit d5acda4

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
@@ -384,7 +384,7 @@ vars:
384384
TIMESTAMP_SHORT:
385385
sh: echo "{{now | date "20060102"}}"
386386
TAG:
387-
sh: echo "$(git tag --points-at=HEAD 2> /dev/null)"
387+
sh: echo "$(git tag --points-at=HEAD 2> /dev/null | head -n1)"
388388
VERSION: "{{ if .NIGHTLY }}nightly-{{ .TIMESTAMP_SHORT }}{{ else if .TAG }}{{ .TAG }}{{ else }}snapshot{{ end }}"
389389
CONFIGURATION_PACKAGE: "github.com/arduino/{{ .PROJECT_NAME }}/internal/configuration"
390390
LDFLAGS: >-

0 commit comments

Comments
 (0)