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

Skip validating RBIs when running under add-on mode #2086

Merged

Conversation

vinistock
Copy link
Member

Motivation

The RBI validation is to prevent conflicts between gem RBIs and DSL RBIs coming from those gems. That scenario is not relevant for the add-on because the user would only be editing files like models and not files inside gems.

That scenario is more important for when you're bumping a gem manually, but that's not covered by the add-on and I think it should be fine to not validate the RBIs.

The reason this is relevant is because to validate them, we shell out to Sorbet, which consumes more than 2x the amount of time it takes to actually generate the DSL RBIs.

Implementation

Simply started skipping validation when in add-on mode.

The RBI validation is to prevent conflicts between
gem RBIs and DSL RBIs coming from those gems. That
scenario is not relevant for the add-on because
the user would only be editing files like models
and not files inside gems
@vinistock vinistock merged commit c3a7376 into tapioca-addon-feature-branch Nov 22, 2024
29 of 30 checks passed
@vinistock vinistock deleted the vs-skip-validate-under-addon branch November 22, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants