From 561361d510548786e412b15f1b8e241e29e205d8 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 16 Jun 2021 23:02:30 -0700 Subject: [PATCH] Strip newline from Go build task's LDFLAGS value The default behavior of the YAML folded block style is to have a final newline. Even though it seems to work fine as-is, since this variable defines a flag used in a command, it is more appropriate to not have a newline. This is achieved by adding the "strip chomping indicator". --- workflow-templates/assets/release-go-task/Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-templates/assets/release-go-task/Taskfile.yml b/workflow-templates/assets/release-go-task/Taskfile.yml index ed5f6f00..de0ae275 100644 --- a/workflow-templates/assets/release-go-task/Taskfile.yml +++ b/workflow-templates/assets/release-go-task/Taskfile.yml @@ -18,7 +18,7 @@ vars: TAG: 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: >- -ldflags ' -X github.com/arduino/arduino-cli/version.versionString={{.VERSION}}