From 18a90e727fb3f761fe0305d75ed76b1f9a559351 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 2 Jun 2025 18:11:56 +0100 Subject: [PATCH] define main.version in local builds --- Taskfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 9f48f92..4f0b537 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -35,13 +35,13 @@ tasks: build-windows: desc: Build the gobs-cli project for Windows cmds: - - GOOS=windows GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.PROGRAM}}_windows_amd64.exe + - GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.version=debug'" -o {{.BIN_DIR}}/{{.PROGRAM}}_windows_amd64.exe internal: true build-linux: desc: Build the gobs-cli project for Linux cmds: - - GOOS=linux GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64 + - GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.version=debug'" -o {{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64 internal: true test: