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

Consider that the project has a type checker if sorbet-static is present as transitive dependency #2443

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

vinistock
Copy link
Member

Motivation

I'm not sure how exactly we regressed on this, but we were again checking for a direct dependency on sorbet-static to determine if the application is using Sorbet. This is not the appropriate check because the direct dependency could be on sorbet-static-and-runtime and we would then show duplicate features (which is currently happening).

Implementation

Moved back to checking for sorbet-static in transitive dependencies.

Automated Tests

Added a test that fails with the current implementation in main.

@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Aug 14, 2024
@vinistock vinistock self-assigned this Aug 14, 2024
@vinistock vinistock requested a review from a team as a code owner August 14, 2024 14:42
@vinistock vinistock requested review from andyw8 and st0012 August 14, 2024 14:42
@andyw8
Copy link
Contributor

andyw8 commented Aug 14, 2024

I was curious if any gems had sorbet-static as a runtime dependency:

https://rubygems.org/gems/sorbet-static/reverse_dependencies

@vinistock vinistock merged commit 262c34b into main Aug 14, 2024
36 checks passed
@vinistock vinistock deleted the vs-check-sorbet-static-transitive branch August 14, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants