Skip to content

Fixed nil dependency panic in Ruby Gemfile.lock resolver#207

Merged
kezhenxu94 merged 1 commit intoapache:mainfrom
pboling:feat/handle-error
Sep 13, 2025
Merged

Fixed nil dependency panic in Ruby Gemfile.lock resolver#207
kezhenxu94 merged 1 commit intoapache:mainfrom
pboling:feat/handle-error

Conversation

@pboling
Copy link
Contributor

@pboling pboling commented Sep 13, 2025

  • now treats missing specs as unresolved licenses
  • adds them to the invalid list
  • License fetch logic handles empty gem versions gracefully
  • tests updated
    • handle missing specs gracefully with mocked HTTP responses
    • imports and packages were refactored to enable mocking and improve test structure

…olver

- now treats missing specs as unresolved licenses
- adds them to the invalid list
- License fetch logic handles empty gem versions gracefully
- tests updated
  - handle missing specs gracefully with mocked HTTP responses
  - imports and packages were refactored to enable mocking and improve test structure
@wu-sheng wu-sheng added the bug Something isn't working label Sep 13, 2025
@wu-sheng wu-sheng added this to the 0.8.0 milestone Sep 13, 2025
@wu-sheng wu-sheng requested a review from kezhenxu94 September 13, 2025 07:34
@pboling
Copy link
Contributor Author

pboling commented Sep 13, 2025

@wu-sheng @kezhenxu94 I think this may be sufficient. I don't see any other changes needed.

... well aside from the issue of it checking development dependencies for a library. That's not supposed to happen. Going to write more tests to see if I can reproduce that. I can make that a separate PR.

Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@kezhenxu94 kezhenxu94 merged commit 5a19c65 into apache:main Sep 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants