From f026556124df6015fa812175cb26b5759c172f91 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sun, 30 Jun 2024 14:24:05 -0400 Subject: [PATCH] fix(taskfile) closes #6559 --- projects/taskfile.dev/package.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/projects/taskfile.dev/package.yml b/projects/taskfile.dev/package.yml index b6de6382..ed772c34 100644 --- a/projects/taskfile.dev/package.yml +++ b/projects/taskfile.dev/package.yml @@ -1,4 +1,4 @@ -distributable: +distributable: url: https://github.com/go-task/task/archive/refs/tags/v{{version}}.tar.gz strip-components: 1 @@ -13,7 +13,10 @@ provides: build: dependencies: go.dev: ^1.19 - script: go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task + script: + - run: sed -i 's/info.Main.Version/"{{version}}"/g' version.go + working-directory: internal/version + - go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task env: GOBIN: ${{prefix}}/bin LDFLAGS: @@ -27,7 +30,6 @@ build: - -buildmode=pie test: - script: | - task --init - test -f Taskfile.yml - task --version | grep 'Task version: {{version}}' + - task --init + - test -f Taskfile.yml + - "task --version | grep 'Task version: {{version}}'"