fix: correct brew commands and remove dead homebrew CI job
The Homebrew formula is named "beads" (not "bd"), so all brew commands must use `brew install beads` / `brew upgrade beads`. Also removes the dead update-homebrew job from release.yml — homebrew-core handles formula updates automatically. Follows up on #1557 which fixed the Go code in bd doctor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f23e2afb6b
commit
a46c1db86e
11 changed files with 13 additions and 82 deletions
69
.github/workflows/release.yml
vendored
69
.github/workflows/release.yml
vendored
|
|
@ -107,72 +107,3 @@ jobs:
|
|||
# Uses OIDC trusted publishing - no token needed
|
||||
# Provenance attestations are automatic with trusted publishing
|
||||
|
||||
update-homebrew:
|
||||
runs-on: ubuntu-latest
|
||||
needs: goreleaser
|
||||
if: ${{ github.repository == 'steveyegge/beads' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get release info
|
||||
id: release
|
||||
run: |
|
||||
TAG="${GITHUB_REF#refs/tags/}"
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Download checksums
|
||||
run: |
|
||||
curl -sL "https://github.com/steveyegge/beads/releases/download/${{ steps.release.outputs.tag }}/checksums.txt" -o checksums.txt
|
||||
|
||||
- name: Extract checksums
|
||||
id: checksums
|
||||
run: |
|
||||
echo "darwin_amd64=$(grep 'darwin_amd64.tar.gz' checksums.txt | awk '{print $1}')" >> $GITHUB_OUTPUT
|
||||
echo "darwin_arm64=$(grep 'darwin_arm64.tar.gz' checksums.txt | awk '{print $1}')" >> $GITHUB_OUTPUT
|
||||
echo "linux_amd64=$(grep 'linux_amd64.tar.gz' checksums.txt | awk '{print $1}')" >> $GITHUB_OUTPUT
|
||||
echo "linux_arm64=$(grep 'linux_arm64.tar.gz' checksums.txt | awk '{print $1}')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Update Homebrew formula
|
||||
run: |
|
||||
mkdir -p Formula
|
||||
cat > Formula/bd.rb <<'EOF'
|
||||
class Bd < Formula
|
||||
desc "AI-supervised issue tracker for coding workflows"
|
||||
homepage "https://github.com/steveyegge/beads"
|
||||
version "${{ steps.release.outputs.version }}"
|
||||
license "MIT"
|
||||
|
||||
on_macos do
|
||||
if Hardware::CPU.arm?
|
||||
url "https://github.com/steveyegge/beads/releases/download/v#{version}/beads_#{version}_darwin_arm64.tar.gz"
|
||||
sha256 "${{ steps.checksums.outputs.darwin_arm64 }}"
|
||||
else
|
||||
url "https://github.com/steveyegge/beads/releases/download/v#{version}/beads_#{version}_darwin_amd64.tar.gz"
|
||||
sha256 "${{ steps.checksums.outputs.darwin_amd64 }}"
|
||||
end
|
||||
end
|
||||
|
||||
on_linux do
|
||||
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
||||
url "https://github.com/steveyegge/beads/releases/download/v#{version}/beads_#{version}_linux_arm64.tar.gz"
|
||||
sha256 "${{ steps.checksums.outputs.linux_arm64 }}"
|
||||
else
|
||||
url "https://github.com/steveyegge/beads/releases/download/v#{version}/beads_#{version}_linux_amd64.tar.gz"
|
||||
sha256 "${{ steps.checksums.outputs.linux_amd64 }}"
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
bin.install "bd"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/bd", "version"
|
||||
end
|
||||
end
|
||||
EOF
|
||||
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ This handles the entire release workflow automatically, including waiting ~5 min
|
|||
4. Push version bump: `git push origin main`
|
||||
5. Tag release: `git tag v<version> && git push origin v<version>`
|
||||
6. Update Homebrew: `./scripts/update-homebrew.sh <version>` (waits for GitHub Actions)
|
||||
7. Verify: `brew update && brew upgrade bd && bd version`
|
||||
7. Verify: `brew update && brew upgrade beads && bd version`
|
||||
|
||||
See [docs/RELEASING.md](docs/RELEASING.md) for complete manual instructions.
|
||||
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ tar -xzf beads_0.22.0_darwin_arm64.tar.gz
|
|||
|
||||
```bash
|
||||
brew update
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
bd version
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ This infrastructure is critical for debugging, auditing, and user support - it a
|
|||
- `make install` - Used by developers building from source
|
||||
- `go install ./cmd/bd` - Direct Go installation with embedded ldflag injection
|
||||
- GitHub releases - Goreleaser-built binaries for all platforms
|
||||
- Homebrew - Pre-built binaries installed via `brew install bd`
|
||||
- Homebrew - Pre-built binaries installed via `brew install beads`
|
||||
- npm - Node.js package that downloads pre-built binaries via postinstall hook
|
||||
- `./scripts/install.sh` - User-friendly build-from-source helper
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ bd version
|
|||
**2. If version < 0.15.0, update bd:**
|
||||
```bash
|
||||
# Via Homebrew (macOS/Linux)
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
|
||||
# Via go install
|
||||
go install github.com/steveyegge/beads/cmd/bd@latest
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ The installer will:
|
|||
|
||||
| Method | Best For | Updates | Prerequisites | Notes |
|
||||
|--------|----------|---------|---------------|-------|
|
||||
| **Homebrew** | macOS/Linux users | `brew upgrade bd` | Homebrew | Recommended. Handles everything automatically |
|
||||
| **Homebrew** | macOS/Linux users | `brew upgrade beads` | Homebrew | Recommended. Handles everything automatically |
|
||||
| **npm** | JS/Node.js projects | `npm update -g @beads/bd` | Node.js | Convenient if npm is your ecosystem |
|
||||
| **bun** | JS/Bun.js projects | `bun install -g --trust @beads/bd` | Bun.js | Convenient if bun is your ecosystem |
|
||||
| **Install script** | Quick setup, CI/CD | Re-run script | curl, bash | Good for automation and one-liners |
|
||||
|
|
@ -443,7 +443,7 @@ After installation:
|
|||
### Homebrew
|
||||
|
||||
```bash
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
```
|
||||
|
||||
### go install
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ The release will appear at: https://github.com/steveyegge/beads/releases
|
|||
2. **Verify installations**:
|
||||
```bash
|
||||
# Homebrew
|
||||
brew update && brew upgrade bd && bd version
|
||||
brew update && brew upgrade beads && bd version
|
||||
|
||||
# PyPI
|
||||
pip install --upgrade beads-mcp
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ The script provides colorful, step-by-step progress output:
|
|||
After the script finishes:
|
||||
- GitHub Actions builds binaries for all platforms (~5 minutes)
|
||||
- PyPI package is published automatically
|
||||
- Users can `brew upgrade bd` to get the new version
|
||||
- Users can `brew upgrade beads` to get the new version
|
||||
- GitHub Release is created with binaries and changelog
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ CGO_ENABLED=1 go install github.com/steveyegge/beads/cmd/bd@latest
|
|||
### Homebrew
|
||||
|
||||
```bash
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
```
|
||||
|
||||
### go install
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ bd info --whats-new --json # Machine-readable
|
|||
### Homebrew
|
||||
|
||||
```bash
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
```
|
||||
|
||||
### go install
|
||||
|
|
|
|||
|
|
@ -363,7 +363,7 @@ The recommended approach for Claude Code, Cursor, Windsurf, and other editors wi
|
|||
|
||||
```bash
|
||||
# 1. Install bd CLI (see Quick Install above)
|
||||
brew install bd
|
||||
brew install beads
|
||||
|
||||
# 2. Initialize in your project
|
||||
cd your-project
|
||||
|
|
@ -449,7 +449,7 @@ CGO_ENABLED=1 go install github.com/steveyegge/beads/cmd/bd@latest
|
|||
### Homebrew
|
||||
|
||||
```bash
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
```
|
||||
|
||||
### go install
|
||||
|
|
@ -646,7 +646,7 @@ bd info --whats-new --json # Machine-readable
|
|||
### Homebrew
|
||||
|
||||
```bash
|
||||
brew upgrade bd
|
||||
brew upgrade beads
|
||||
```
|
||||
|
||||
### go install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue