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

Fixes two panics #624

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Fixes two panics #624

merged 2 commits into from
Apr 11, 2022

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Apr 11, 2022

Summary

Fixes two edge cases where panics can occur.

  • If there is no package information in the descriptor at all, panics trying to generate repos list
  • If there is only a single package set, panics when trying to pick the first repo

Use Cases

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Apr 11, 2022
@dmikusa dmikusa requested a review from a team April 11, 2022 15:02
@dmikusa dmikusa force-pushed the panic-fix branch 2 times, most recently from beef4a1 to ad99eba Compare April 11, 2022 15:49
Fixes two edge cases where panics can occur.
- If there is no package information in the descriptor at all, panics trying to generate repos list
- If there is only a single package set, panics when trying to pick the first repo

Signed-off-by: Daniel Mikusa <[email protected]>
octo/create_package.go Outdated Show resolved Hide resolved
@dmikusa dmikusa merged commit f8000e4 into main Apr 11, 2022
@dmikusa dmikusa deleted the panic-fix branch April 11, 2022 16:06
This was referenced Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants