Repository navigation
Add Homebrew tap and cask auto-update CI (closes #1186) - #1189
Conversation
Creates github.com/NodeSpaceAI/homebrew-nodespace with Casks/nodespace.rb supporting arm64 and x64 DMGs. Adds update-homebrew-cask job to release.yml that computes SHA256s and opens a PR to the tap on each GitHub release. Co-Authored-By: Claude <[email protected]>
|
Review Type: Initial Review Requirements Check
Code Review FindingsCritical Issues[Critical/Blocker]
This is particularly sharp here because For a [Critical/Blocker] The runner is Suggested Improvements[Improvement] The version is correctly stripped ( [Improvement]
[Improvement] If a release is re-published or the workflow is re-run, Example: # Skip if PR for this version already exists
if gh pr list --repo NodeSpaceAI/homebrew-nodespace --head "$BRANCH" --json number --jq '.[0].number' | grep -q .; then
echo "PR for $BRANCH already exists, skipping"
exit 0
fi[Improvement] Issue spec vs implementation — cask formula divergence The issue spec shows a NitpicksNit: The debug echo lines are fine for now but will print raw SHA256 values in public CI logs. Not a security issue (SHA256 of a public DMG is public), but worth noting they produce noise in the log output. Nit: The SummaryThe core approach is sound: wait for the full build, download the real artifacts, compute SHA256, and open a PR to the tap repo. The DMG asset naming matches actual release output. The main actionable issues are:
Recommendation: REQUEST CHANGES — the Reviewed by Claude Code (Pragmatic Quality Framework) |
malibio
left a comment
There was a problem hiding this comment.
Requesting changes — see detailed findings in the comment above. Blocking issues: (1) needs: build-tauri matrix dependency semantics on the Windows leg, (2) sed -i '' BSD-only fragility. Full analysis posted.
- Replace sed -i '' (BSD-only) with awk for version update — consistent with SHA256 update pattern already used in the same step - Add idempotency guard: skip PR creation if branch already exists in tap - Remove redundant HOMEBREW_TAP_TOKEN env var (GH_TOKEN is what gh uses) - Add comment documenting matrix dependency behavior for needs: build-tauri - Add comment linking DMG filename pattern to tauri.conf.json productName - Remove noisy SHA256 debug echo lines Co-Authored-By: Claude <[email protected]>
Review feedback addressed✅ Addressed (4 items)
⏭️ Skipped (1 item)
|
Co-Authored-By: Claude <[email protected]>
* Add Homebrew tap and cask auto-update CI (closes #1186) Creates github.com/NodeSpaceAI/homebrew-nodespace with Casks/nodespace.rb supporting arm64 and x64 DMGs. Adds update-homebrew-cask job to release.yml that computes SHA256s and opens a PR to the tap on each GitHub release. Co-Authored-By: Claude <[email protected]> * Address review: fix sed portability, idempotency, and cleanup - Replace sed -i '' (BSD-only) with awk for version update — consistent with SHA256 update pattern already used in the same step - Add idempotency guard: skip PR creation if branch already exists in tap - Remove redundant HOMEBREW_TAP_TOKEN env var (GH_TOKEN is what gh uses) - Add comment documenting matrix dependency behavior for needs: build-tauri - Add comment linking DMG filename pattern to tauri.conf.json productName - Remove noisy SHA256 debug echo lines Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
Summary
github.com/NodeSpaceAI/homebrew-nodespacewithCasks/nodespace.rbsupporting arm64 and x64 DMGs viaon_arm/on_intelblocksupdate-homebrew-caskjob torelease.ymlthat runs afterbuild-taurion each release, computes SHA256s, and opens a PR to the tap repo automaticallyzapstanza to remove LaunchAgent, bins, and logs but preserves~/.nodespace/database/user dataSetup required
Add a
HOMEBREW_TAP_TOKENsecret toNodeSpaceAI/nodespace-core— a GitHub PAT withcontents:writeandpull_requests:writescope onNodeSpaceAI/homebrew-nodespace. The release CI uses this to push branches and open PRs to the tap.Test plan
brew tap nodespaceai/nodespace && brew install --cask nodespaceinstalls the appbrew audit --cask nodespacepasses (requires signed DMG)update-homebrew-caskjob opens a PR tohomebrew-nodespacebrew uninstall --zap --cask nodespaceremoves agent plist and bins but not~/.nodespace/database/Closes #1186
🤖 Generated with Claude Code