goreleaser check fails on v2.19: homebrew_casks.hooks.post.install is deprecated

Aperta Adatta ai principianti
#386 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, go
Ambito
ci-cd, cli, release

Direzione di ricerca

Leggi .goreleaser.yaml e individua l’hook di installazione di Homebrew cask; confrontane il contenuto con la documentazione del DSL postflight_steps di GoReleaser. Poi rimuovi il pin di GoReleaser v2.18 ed esegui il job Validate goreleaser config con v2.19 o versione successiva. Il lavoro è completato quando la configurazione viene convalidata senza l’errore di deprecazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

GoReleaser v2.19.0 (released 2026-10-22) deprecates homebrew_casks.hooks.post.install, which .goreleaser.yaml uses for the Homebrew cask. goreleaser check treats deprecated properties as a failure, so the Validate goreleaser config job in the post-merge workflow fails whenever it runs v2.19 or later.

What changed upstream

  • Homebrew deprecated the cask postflight stanza in favour of a declarative postflight_steps DSL (Homebrew/brew#23366).
  • GoReleaser v2.19 mirrors this: hooks.pre.install / hooks.post.install are deprecated, and the hook bodies must be rewritten in the new DSL rather than arbitrary Ruby.
  • Details: https://goreleaser.com/deprecations#homebrew_caskshookspostinstall

Impact

  • The release workflows use goreleaser/goreleaser-action@v7 with the default ~> v2 version, so they float to the latest v2.x.
  • Until the cask hook is migrated, the repo is pinned to v2.18 to keep post-merge checks green; it cannot move to v2.19+ until then.
  • Release runs use the same config and will hit the same deprecation (and eventually breakage if Homebrew removes postflight).

Needed

Upgrade the repo to GoReleaser v2.19+ and remove the pin.

Lingua principale
Go
Stelle
29
Fork
24
Merge medio
1g 9h
PR unite (30g)
111

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di harness/cli

Tutte le issue di harness/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.