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

Fix panic calling tanzu package installed status #1161

Merged

Conversation

clebs
Copy link
Contributor

@clebs clebs commented Apr 5, 2023

What this PR does / why we need it:

Calling tanzu package installed status without any arguments causes the program to panic (see linked issue).

Which issue(s) this PR fixes:

Fixes #1160

Does this PR introduce a user-facing change?

NONE

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:

NONE

Calling tanzu package installed status without any arguments causes the
program to panic.

Signed-off-by: Borja Clemente <cborja@vmware.com>
@clebs clebs force-pushed the package-installed-status-panic branch from 801bcae to 39432cc Compare April 5, 2023 14:00
@clebs clebs changed the title Fix panic calling tanzu package installed status Fix panic calling tanzu package installed status Apr 5, 2023
Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

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

Thank you so much for finding and fixing this ❤️
I just noticed that this issue is present in other commands as well, would you like to work on those as well?

cli/pkg/kctrl/cmd/package/installed/status.go Outdated Show resolved Hide resolved
Signed-off-by: Borja Clemente <cborja@vmware.com>
@clebs
Copy link
Contributor Author

clebs commented Apr 5, 2023

Hi @praveenrewar,

thanks for the quick review! Yes I will do a swipe throughout the commands and see where this is happening.

Will submit another PR when ready linking to this issue.

Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you so much!

@praveenrewar praveenrewar merged commit 9a0282f into carvel-dev:develop Apr 5, 2023
@clebs clebs deleted the package-installed-status-panic branch April 6, 2023 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

panic on tanzu package installed status
2 participants