Skip to content

prevent guessing when unavailable #330

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

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

zhounathan
Copy link
Contributor

@zhounathan zhounathan commented Mar 3, 2025

Why

when running upm guess we don't want packages that do not have a implemented Guess functionality to error.

What changed

add a safety check to skip b.Guess() if it's not implemented. We'll return an empty pkgs instead.

Test plan

building and running locally for a pkg that doesn't support Guess doesn't error.

With the nil check:
image

Without (previous behavior)
image

@zhounathan
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was autogenerated by Freephite.

@zhounathan zhounathan marked this pull request as ready for review March 3, 2025 19:57
@zhounathan zhounathan requested a review from a team as a code owner March 3, 2025 19:57
@zhounathan zhounathan requested review from airportyh and blast-hardcheese and removed request for a team March 3, 2025 19:57
@zhounathan zhounathan merged commit db7d4ec into main Mar 3, 2025
5 checks passed
@zhounathan zhounathan deleted the 03-03-prevent_guessing_when_unavailable branch March 3, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants