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

dev-cmd/generate-cask-api: fix handling of + characters #18338

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Sep 16, 2024

Aligns with the reverse we do on the other side: https://github.com/Homebrew/formulae.brew.sh/blob/20739b186d71b0ba66fabdb0f2f8172d1ceab9f8/_layouts/cask_json.json#L4

Not looked into the technical reason for it but we do it in generate-formula-api so let's just do it here too:

File.write("_data/formula/#{name.tr("+", "_")}.json", "#{json}\n")

Hopefully fixes Homebrew/homebrew-cask#185583

@Bo98 Bo98 merged commit 07bab08 into master Sep 16, 2024
27 checks passed
@Bo98 Bo98 deleted the cask-api-plus branch September 16, 2024 15:52
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.

iina+ formula is missing from Homebrew's cask API
2 participants