2023-07-02 14:14:43 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/go-task/task/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-06-30 06:13:25 +03:00
|
|
|
|
|
|
|
displayname: Task
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: go-task/task/releases/tags
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/task
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.19
|
2023-07-02 14:14:43 +03:00
|
|
|
script: go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task
|
2023-06-30 06:13:25 +03:00
|
|
|
env:
|
|
|
|
GOBIN: ${{prefix}}/bin
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
2023-07-02 14:14:43 +03:00
|
|
|
- -X github.com/go-task/task/v3/internal/version.version={{version}}
|
2023-06-30 06:13:25 +03:00
|
|
|
linux:
|
|
|
|
# or segmentation fault
|
|
|
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
task --init
|
|
|
|
test -f Taskfile.yml
|
2023-07-02 14:14:43 +03:00
|
|
|
task --version | grep 'Task version: {{version}}'
|