Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cask token error in brew api-readall-test #51

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

apainintheneck
Copy link
Owner

$ brew api-readall-test
Generating formulae API ... and mocking formula API loader.
Read core formulae and saw no failures!

Generating cask API ...Warning: Cask font-rounded-mplus was renamed to font-rounded-m+.
 and mocking cask API loader.
Read core casks and saw 1 failure!

Readall Failures: Casks
-----------------------
>> font-rounded-mplus : key not found: "font-rounded-mplus"
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:318:in `fetch'

The problem was that font-rounded-mplus got renamed to font-rounded-m+ and we were getting the cask tokens from the file names instead of the cask definitions directly. I'm not entirely sure why the cask token name from the core cask tap are wrong here but changing the order and basing it on the cask that was loaded seems to work.

```
$ brew api-readall-test
Generating formulae API ... and mocking formula API loader.
Read core formulae and saw no failures!

Generating cask API ...Warning: Cask font-rounded-mplus was renamed to font-rounded-m+.
 and mocking cask API loader.
Read core casks and saw 1 failure!

Readall Failures: Casks
-----------------------
>> font-rounded-mplus : key not found: "font-rounded-mplus"
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:318:in `fetch'
```

The problem was that `font-rounded-mplus` got renamed to `font-rounded-m+`
and we were getting the cask tokens from the file names instead of the cask
definitions directly. I'm not entirely sure why the cask token name from
the core cask tap are wrong here but changing the order and basing it on
the cask that was loaded seems to work.
@apainintheneck apainintheneck merged commit 117e8b4 into main Oct 6, 2024
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.

1 participant