From 3916554e54d4dc9a5d20330decd8dca59d5bf0ef Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 12 Jun 2025 07:26:58 +1000 Subject: [PATCH] Update v3/internal/commands/build_assets/linux/Taskfile.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- v3/internal/commands/build_assets/linux/Taskfile.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/v3/internal/commands/build_assets/linux/Taskfile.yml b/v3/internal/commands/build_assets/linux/Taskfile.yml index 132305abb..11ef6eb7f 100644 --- a/v3/internal/commands/build_assets/linux/Taskfile.yml +++ b/v3/internal/commands/build_assets/linux/Taskfile.yml @@ -18,7 +18,14 @@ tasks: cmds: - go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}} vars: - BUILD_FLAGS: '{{if eq .STATIC "true"}}-tags production -trimpath -buildvcs=false -ldflags="-w -s -linkmode external -extldflags '\''-static'\''"{{else if eq .PRODUCTION "true"}}-tags production -trimpath -buildvcs=false -ldflags="-w -s"{{else}}-buildvcs=false -gcflags=all="-l"{{end}}' + BUILD_FLAGS: >- + {{ if eq .STATIC "true" }} + -tags production -trimpath -buildvcs=false -ldflags="-w -s -linkmode external -extldflags '-static'" + {{ else if eq .PRODUCTION "true" }} + -tags production -trimpath -buildvcs=false -ldflags="-w -s" + {{ else }} + -buildvcs=false -gcflags=all="-l" + {{ end }} env: GOOS: linux CGO_ENABLED: 1