Skip to content

Commit c2aaa06

Browse files
committed
Use macOS-compliant shell command for generating build timestamp
The previous command only worked on Linux.
1 parent d5307a7 commit c2aaa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ vars:
185185
COMMIT:
186186
sh: echo "$(git log -n 1 --format=%h)"
187187
TIMESTAMP:
188-
sh: echo "$(date --utc --iso-8601=second)"
188+
sh: echo "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
189189
LDFLAGS: >
190190
-ldflags '-X github.com/arduino/arduino-check/configuration.commit={{.COMMIT}} -X github.com/arduino/arduino-check/configuration.buildTimestamp={{.TIMESTAMP}}'
191191
GOFLAGS: "-timeout 10m -v -coverpkg=./... -covermode=atomic"

0 commit comments

Comments
 (0)