From f0e5f5b286700bd1d199eb60a28deaf6d8ef8b45 Mon Sep 17 00:00:00 2001 From: Max Winterstein Date: Sun, 2 Jul 2023 13:14:43 +0200 Subject: [PATCH] fix(taskfile.dev) Build from local sources --- projects/taskfile.dev/package.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/taskfile.dev/package.yml b/projects/taskfile.dev/package.yml index afffa451..b6de6382 100644 --- a/projects/taskfile.dev/package.yml +++ b/projects/taskfile.dev/package.yml @@ -1,5 +1,6 @@ -#FIXME: we should use source if possible -distributable: ~ +distributable: + url: https://github.com/go-task/task/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 displayname: Task @@ -12,14 +13,13 @@ provides: build: dependencies: go.dev: ^1.19 - working-directory: ${{prefix}}/bin - script: go install -ldflags="$LDFLAGS" github.com/go-task/task/v3/cmd/task@v{{version}} + script: go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task env: GOBIN: ${{prefix}}/bin LDFLAGS: - -s - -w - - -X main.Version={{version}} + - -X github.com/go-task/task/v3/internal/version.version={{version}} linux: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 @@ -30,4 +30,4 @@ test: script: | task --init test -f Taskfile.yml - task --version | grep 'Task version: v{{version}}' + task --version | grep 'Task version: {{version}}'