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

Avoid passing empty strings as versions, part 2 #9471

Merged
merged 3 commits into from Apr 10, 2024
Merged

Conversation

bdragon
Copy link
Member

@bdragon bdragon commented Apr 10, 2024

The issue described/addressed in #9461 is still causing runtime exceptions. Instead of dancing around the issue by trying to prevent empty string versions everywhere, this change updates Dependabot::Dependency by initializing its version/previous_version to nil if the given value for either resolves to an empty string.

Fixes #9430

@bdragon bdragon added T: bug 🐞 Something isn't working F: grouped-updates 🎳 Relates to bumping more than one dependency in a single PR labels Apr 10, 2024
@bdragon bdragon requested a review from a team as a code owner April 10, 2024 14:42
If a Dependabot::Dependency is initialized with a version or
previous_version that is an empty string, set it to nil.
@bdragon bdragon merged commit 3562413 into main Apr 10, 2024
53 checks passed
@bdragon bdragon deleted the bdragon/iss-9430 branch April 10, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: grouped-updates 🎳 Relates to bumping more than one dependency in a single PR T: bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentError: blank strings must not be provided as versions
2 participants