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

Handle missing specs when listing transitive dependencies #3012

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Jan 6, 2025

Motivation

This PR fixes a mistake made in #2937. We cannot invoke to_spec without rescuing Gem::MissingSpecError because that gets raised whenever there's a gem that doesn't match platform constraints.

Implementation

Added the missing rescue.

Automated Tests

Added a test that fails before the fix so that we catch this next time.

@vinistock vinistock added server This pull request should be included in the server gem's release notes bugfix This PR will fix an existing bug labels Jan 6, 2025 — with Graphite App
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock requested review from andyw8 and st0012 January 6, 2025 15:19
@vinistock vinistock marked this pull request as ready for review January 6, 2025 15:21
@vinistock vinistock requested a review from a team as a code owner January 6, 2025 15:21
@vinistock vinistock force-pushed the 01-06-handle_missing_specs_when_listing_transitive_dependencies branch from 394fbf1 to e4fbeea Compare January 6, 2025 15:34
@vinistock vinistock merged commit 8792872 into main Jan 6, 2025
46 checks passed
Copy link
Member Author

Merge activity

  • Jan 6, 10:58 AM EST: A user merged this pull request with Graphite.

@vinistock vinistock deleted the 01-06-handle_missing_specs_when_listing_transitive_dependencies branch January 6, 2025 15:58
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