From cf9d6b73a5ca2acffdf2fb1a05517bd80dbf3a8c Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sat, 21 Feb 2026 16:00:34 +0100 Subject: [PATCH] feat(homebrew): migrate from Formula to Cask Switch GoReleaser config from `brews` to `homebrew_casks` and update documentation links to reference Casks/go-task.rb instead of Formula/go-task.rb. --- .goreleaser.yml | 17 ++++++++--------- website/src/docs/installation.md | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8cfb3928..1e090586 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -80,22 +80,21 @@ nfpms: - src: completion/zsh/_task dst: /usr/local/share/zsh/site-functions/_task -brews: +homebrew_casks: - name: go-task description: A fast, cross-platform build tool inspired by Make, designed for modern workflows. - license: MIT homepage: https://taskfile.dev - directory: Formula + binaries: + - task + completions: + bash: completion/bash/task.bash + zsh: completion/zsh/_task + fish: completion/fish/task.fish + directory: Casks repository: owner: go-task name: homebrew-tap token: "{{.Env.GH_GORELEASER_TOKEN}}" # So that it runs as the task-bot user - test: system "#{bin}/task", "--help" - install: |- - bin.install "task" - bash_completion.install "completion/bash/task.bash" => "task" - zsh_completion.install "completion/zsh/_task" => "_task" - fish_completion.install "completion/fish/task.fish" commit_author: name: task-bot email: 106601941+task-bot@users.noreply.github.com diff --git a/website/src/docs/installation.md b/website/src/docs/installation.md index a983dc0e..6e876a4d 100644 --- a/website/src/docs/installation.md +++ b/website/src/docs/installation.md @@ -75,7 +75,7 @@ apk add task ### [Homebrew](https://brew.sh) ![macOS](https://img.shields.io/badge/MacOS-000000?logo=apple&logoColor=F0F0F0) ![Linux](https://img.shields.io/badge/Linux-FCC624?logo=linux&logoColor=black) {#homebrew} Task is available via our official Homebrew tap -[[source](https://github.com/go-task/homebrew-tap/blob/main/Formula/go-task.rb)]: +[[source](https://github.com/go-task/homebrew-tap/blob/main/Casks/go-task.rb)]: ```shell brew install go-task/tap/go-task