Migrate .goreleaser.yaml from deprecated brews to homebrew_casks

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
release

Direzione di ricerca

Inizia con .goreleaser.yaml e release.yml, quindi verifica se GoReleaser v2.16 homebrew_casks mantiene il supporto esistente per l’installazione su Linux. Esegui goreleaser check e una simulazione di release prima e dopo la migrazione; il lavoro è completato quando il blocco brews deprecato viene rimosso senza eliminare le installazioni Linux supportate.

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

Descrizione

Problem

.goreleaser.yaml's brews: block is deprecated as of goreleaser v2.10 (soft)
and v2.16 (current — the version pinned in release.yml). goreleaser check
fails on it; goreleaser release still works today but emits a deprecation
warning, and the field will eventually be removed.

From goreleaser's own deprecation notice:

Historically, GoReleaser would generate hackyish formulas that would install
the pre-compiled binaries. This was the only way to do it for Linuxbrew at
the time, but this is no longer true, and Casks should be used instead.

Proposed fix — not a trivial rename

The literal migration is brews:homebrew_casks: (with directory: Casks
instead of Formula). But this is a real behavior change, not just a renamed
key:

  • Casks change the end-user install command from brew install stacklok/tap/modelith to brew install --cask stacklok/tap/modelith.
  • Homebrew Casks have historically been a macOS-oriented mechanism. Our
    current Formula explicitly ships an on_linux do block (Linuxbrew support).
    Before migrating, confirm homebrew_casks actually preserves Linux install
    support — if it doesn't, this migration would silently drop Homebrew-based
    Linux installs.
  • Neither stacklok/toolhive nor stacklok/frizbee have migrated off brews
    yet either, so there's no in-house precedent to copy from.

Context / priority

Not urgent — brews still functions correctly today (verified via a snapshot
release dry run and the actual v0.4.0 release). Worth doing before goreleaser
actually removes the field, and worth checking in on Linux-cask support first.

Lingua principale
Go
Stelle
32
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 stacklok/modelith

Tutte le issue di stacklok/modelith

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.