Skip to content

cask_loader: improve error handling. #20057

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Conversation

MikeMcQuaid
Copy link
Member

Handle weird edge cases where we try to read a cask from invalid paths.

Fixes #19142

@MikeMcQuaid MikeMcQuaid force-pushed the cask_loader_error_handling branch from 32b536e to a81c0b0 Compare June 6, 2025 13:18
Handle weird edge cases where we try to read a cask from invalid paths.
@MikeMcQuaid MikeMcQuaid force-pushed the cask_loader_error_handling branch from a81c0b0 to e7f667c Compare June 6, 2025 13:19
@MikeMcQuaid MikeMcQuaid enabled auto-merge June 6, 2025 13:58
Copy link
Member

@Rylan12 Rylan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know how involved this would be, but do you think it's worth having a JSON schema for cross-checking our APIs before using them to load formulae/casks?

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jun 6, 2025
@MikeMcQuaid
Copy link
Member Author

@Rylan12 Yeh, think it might be worth considering as part of your internal API work when it's further along? Don't think it makes sense to do before that just from the perspective of the current schema going to change 🔜.

Merged via the queue into master with commit dd7b954 Jun 6, 2025
35 checks passed
@MikeMcQuaid MikeMcQuaid deleted the cask_loader_error_handling branch June 6, 2025 15:22
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.

Error: undefined method `each' for nil
2 participants