Skip to content

Fix Homebrew install colliding with core Go md2pdf - #8

Merged
0xtlt merged 2 commits into
mainfrom
t/fix-homebrew-core-collision-c92b
Jul 29, 2026
Merged

Fix Homebrew install colliding with core Go md2pdf#8
0xtlt merged 2 commits into
mainfrom
t/fix-homebrew-core-collision-c92b

Conversation

@0xtlt

@0xtlt 0xtlt commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

brew install md2pdf currently installs Homebrew core’s Go CLI (solworktech/md2pdf), not this Rust tool. That binary requires -i / -o and prints Usage: md2pdf.go …, which is why:

md2pdf README.md --output readme.pdf
→ Output PDF filename is required

Two compounding issues:

  1. Name collision with homebrew/core/md2pdf — plain brew install md2pdf always prefers core.
  2. Tap formula never published — the v3.2.1 release’s tap update committed Formula/md2pdf.rb but failed to push (could not read Username for 'https://github.com'), so 0xtlt/tap still has no md2pdf formula.

Changes

  • README: short install + usage guide; documents brew install 0xtlt/tap/md2pdf; drops build/dev/perf sections.
  • CONTRIBUTING: note the fully-qualified Homebrew install and core collision.
  • Tap updater: formula caveats for the collision, fully-qualified install in the tap README, more reliable HTTPS push auth.
  • Changelog entry under Unreleased.

After merge (needed to unblock Homebrew installs)

Re-run the tap publisher so Formula/md2pdf.rb lands in 0xtlt/homebrew-tap:

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

Then users can:

brew uninstall md2pdf   # removes core Go package if present
brew install 0xtlt/tap/md2pdf
md2pdf README.md --output readme.pdf

Immediate workaround (no brew)

Download the platform archive from v3.2.1 — verified here that md2pdf README.md --output readme.pdf works on the Rust 3.2.1 Linux binary.

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 29, 2026 16:10
brew install md2pdf resolves to Homebrew core's unrelated Go package
(solworktech/md2pdf), which rejects --output and positional inputs.
Document the fully-qualified 0xtlt/tap/md2pdf install, add formula
caveats, and harden the tap push authentication path.

Co-authored-by: Thomas <0xtlt@users.noreply.github.com>
Drop build-from-source, architecture, performance, and development
sections so the front page stays focused on getting md2pdf running.

Co-authored-by: Thomas <0xtlt@users.noreply.github.com>
@0xtlt
0xtlt marked this pull request as ready for review July 29, 2026 16:16
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@0xtlt
0xtlt merged commit 11afc8b into main Jul 29, 2026
2 checks passed
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