Skip to content

fix: recognize renamed formulas, trim trailing whitespace (v1.0.1) - #7

Merged
batuhan-bas merged 1 commit into
mainfrom
fix/v1.0.1
Oct 8, 2026
Merged

batuhan-bas merged 1 commit into
mainfrom
fix/v1.0.1

Conversation

@batuhan-bas

Copy link
Copy Markdown
Owner

Found by running the installed 1.0.0 on a real machine.

Bug: renamed formulas

sdl2 was renamed to sdl2-compat in Homebrew. brew list still shows the name it was installed under, while brew info --json uses the new name and keeps the old one in aliases/oldnames. brewshelf couldn't match them:

1.0.0 1.0.1
Description none "SDL2 compatibility layer that uses SDL3 behind the scenes"
Default view shown as installed by the user hidden, it's a dependency (of ffmpeg)

Fix: every formula also gets a row for each alias and old name, with both the jq and the osascript parser.

Small fixes

  • Rows without a description ended in padding spaces. On the real machine with --all, there are now 0 lines with trailing whitespace. All rows go through one print_row helper.
  • "1 dependencies hidden" → "1 dependency hidden".
  • Categories: actionlint, shellcheck → Development, brewshelf → CLI Tools. The real machine now has no "Other" section.
  • BREWSHELF_VERSION → 1.0.1.

Tests (66 checks, was 59)

Aliases (hidden + described), old names, trailing whitespace, dependency label without description, alias resolution with both parsers.

After merge

Tag v1.0.1, create the GitHub release, and update url/sha256 in batuhan-bas/homebrew-tap.

- `brew list` shows the name a formula was installed under, brew info
  the current one: sdl2 (now sdl2-compat) had no description and, worse,
  was shown as installed by the user although it is a dependency. Map
  aliases and old names to the formula's data, with both JSON parsers.
- rows without a description no longer end in padding whitespace
- "1 dependency hidden" instead of "1 dependencies hidden"
- categorize actionlint, shellcheck (Development) and brewshelf
  (CLI Tools)
- version 1.0.1
- tests: aliases, old names, trailing whitespace, dependency label
  without description (66 checks)
@batuhan-bas
batuhan-bas merged commit d947cfb into main Oct 8, 2026
1 check passed
@batuhan-bas
batuhan-bas deleted the fix/v1.0.1 branch October 8, 2026 08:33
@batuhan-bas batuhan-bas self-assigned this Oct 8, 2026
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.

1 participant