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 latest version detection on casks with livecheck block #250

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Fix latest version detection on casks with livecheck block #250

merged 1 commit into from
Apr 29, 2024

Conversation

Mick235711
Copy link
Contributor

@Mick235711 Mick235711 commented Apr 15, 2024

Currently, for all casks with a livecheck do block (that are not in the main Cask repository), the latest version cannot be detected, even though it is present in brew info.
CleanShot 2024-04-16 at 02 30 07@2x
(Note that font-sauce-code-pro-nerd-font.rb has a livecheck do block, while font-meslo-for-powerlevel10k.rb does not, even though they are both in Cask Fonts.)

Currently, the load_cask function (basically just CaskLoader.load) throws the following CaskUnavailableError error when facing such casks:

Cask 'font-sauce-code-pro-nerd-font' is unreadable: uninitialized constant Livecheck::Formula

Adding a requires clause fixes this issue.

@Mick235711
Copy link
Contributor Author

Ping @ondrejfuhrer

@ondrejfuhrer ondrejfuhrer merged commit 4a11007 into buo:master Apr 29, 2024
6 checks passed
@Mick235711 Mick235711 deleted the fix-livecheck-version branch April 29, 2024 17:18
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