Skip to content

Ship Homebrew formula in-repo for direct install - #9

Draft
0xtlt wants to merge 1 commit into
mainfrom
t/publish-homebrew-formula-c92b
Draft

Ship Homebrew formula in-repo for direct install#9
0xtlt wants to merge 1 commit into
mainfrom
t/publish-homebrew-formula-c92b

Conversation

@0xtlt

@0xtlt 0xtlt commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

brew install 0xtlt/tap/md2pdf fails because 0xtlt/homebrew-tap still has no Formula/md2pdf.rb — the v3.2.1 tap push never landed, and this agent cannot write to that repo.

Fix

  • Add packaging/homebrew/md2pdf.rb (v3.2.1 checksums) so Homebrew can install from this repo.
  • README uses that URL as the working install path.
  • Tap updater keeps the in-repo formula in sync when it runs.

Install now (works before/after merge)

brew uninstall md2pdf   # if the Go core package is installed
brew install --formula https://raw.githubusercontent.com/0xtlt/md2pdf/t/publish-homebrew-formula-c92b/packaging/homebrew/md2pdf.rb
md2pdf --version

After merge, switch the URL to main:

brew install --formula https://raw.githubusercontent.com/0xtlt/md2pdf/main/packaging/homebrew/md2pdf.rb

Publish the tap (owner one-liner)

This agent cannot push to 0xtlt/homebrew-tap or dispatch workflows. After merge, run:

gh workflow run update-homebrew-tap.yml --ref main -f version=3.2.1

That requires HOMEBREW_TAP_TOKEN with Contents write on the tap. Once it succeeds:

brew install 0xtlt/tap/md2pdf
Open in Web Open in Cursor 

The tap still has no md2pdf formula (publish push never landed), so
brew install 0xtlt/tap/md2pdf fails. Add packaging/homebrew/md2pdf.rb
and document brew install --formula from the raw URL as a working path.

Co-authored-by: Thomas <0xtlt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants