Unbreak releases: cosign v3 bundle signing, drop PGO
Why
v0.1.0 was tagged today and the release failed at cosign: cosign-installer v4.1.2 installs cosign v3, which rejects --output-certificate/--output-signature. That left an empty, non-draft v0.1.0 marked Latest (now moved to draft). proxy.golang.org cached the tag, so it is immutable ā the first good release is v0.1.1, cut from this PR once merged.
What
signs:now produceschecksums.txt.bundle(--bundle,--new-bundle-format=true), the shape basecamp-cli ships and that the installers /hey upgradewill verify.- Remove PGO machinery end to end: the release step,
build-pgo/collect-profile/clean-pgo/bench-cpu/bench-mem,scripts/collect-profile.sh. There are zero benchmarks, so it only ever produced an empty profile. Builds use-trimpath. make_latesttracks prerelease,replace_existing_artifacts: trueso re-running a failed tag is idempotent, cask/scoopskip_upload: auto.- Drop the
go mod tidybefore-hook and the duplicate completions step; zsh completion iscompletions/_heyin archive, cask and nfpm; nfpm addsapkand per-packager zsh paths. VERSION ?= devfor local builds (a git-describe SHA would make a dev binary look like a release oncehey upgradeexists).make releasepassesVERSION/DRY_RUNtorelease.sh, which it previously did not.- Delete root
install.sh(requesteddarwin_all, which is never built); plugin hook links toREADME#install. create-github-app-tokenusesclient-id(app-idis deprecated);RELEASE_CLIENT_IDis set on thereleaseenvironment.- goreleaser pinned at 2.15.4 in
.mise.tomlandrelease.yml. - RELEASING.md loses the PGO and AI-summary steps (full rewrite comes later in this series).
Verified
goreleaser check, actionlint, zizmor,make build && ./bin/hey --versionāhey version dev,make test.goreleaser release --snapshot --skip=publish,sign,sbom: archives containcompletions/_hey; cask useszsh_completion "completions/_hey"; deb/rpm/apk built with the zsh completion at the right path.
First PR of the release-engineering series (CI consolidation, release.yml port, installers, Windows signing, Nix, hey upgrade, surface/size gates follow).
Summary by cubic
Switches signing to cosign v3 bundle mode and removes the unused PGO pipeline, unblocking releases and making failed tags idempotent. Previously we wrote separate signature/cert files that v3 rejects; now we publish checksums.txt.bundle with the bundle format pinned.
goreleaser: signschecksums.txtaschecksums.txt.bundle(keyless, pinned new-bundle format); pins v2.15.4; skips Homebrew/Scoop upload for prereleases;make_latestrespects prerelease;replace_existing_artifacts: true.- Build/PGO: drop PGO steps and scripts; build with
-trimpath; remove duplicate completions generation; zsh completion iscompletions/_heyeverywhere, including AUR;nfpmaddsapkand per-packager zsh paths. - Makefile: local builds default to
VERSION=dev;make releaseforwardsVERSIONandDRY_RUN. - Auth:
actions/create-github-app-tokenusesclient-id; setRELEASE_CLIENT_IDin the release environment. Migration: replace any use ofRELEASE_APP_ID. - Installers/docs: remove root
install.sh; plugin hook links to README#install; docs note skipping SBOM for local snapshots. Migration: update any external scripts to follow README. - Rollout: v0.1.0 is immutable and broken; first valid release will be v0.1.1.