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

Explore parsing Ruby package files without running them #37

Open
apainintheneck opened this issue Jan 26, 2024 · 0 comments
Open

Explore parsing Ruby package files without running them #37

apainintheneck opened this issue Jan 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@apainintheneck
Copy link
Owner

This is essentially an extension of some of the talk that's happened in the main Brew repo over the last few months.

Things to keep in mind:

  • This is often slower than just evaluating the Ruby scripts
  • Are there things we can ignore when parsing
  • The parser gem seems to be too slow for this use case
  • The ripper gem is faster but is essentially legacy code at this point
  • The new prism gem is interesting but will have to wait until we get on Ruby 3.3
    • Note: We're currently on Ruby 3.1 as of 2024-01-25
  • In all likelihood, this won't be something that will make it into the main Brew repo
    • Too slow to be worth the effort
    • Won't likely scale well to 6k formula and 4k casks
@apainintheneck apainintheneck added the enhancement New feature or request label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant