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 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

‎Taskfile.yml‎

Lines changed: 1 addition & 1 deletion
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)

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