Skip to content

fix(table): update to tablewriter v1 apis #3460

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 2 commits into from
Jul 16, 2025

Conversation

brandtkeller
Copy link
Contributor

Description

The update of grype/syft have a dependency on the tablewriter PR - which moves from v0.0.5 to v1.0.8 and includes breaking changes. As a maintainer of a project that uses k9s - I wanted to help overcome the transition as I have done it on a few other projects now and the migration is quite simple.

Context

Fixes #3459

This PR provides an update to tablewriter -> Parity in the previous use the tablewriter dependency -> updates to syft/grype required to compile.

Assoicated PRs

Dependabot should automatically close the following PR's as complete following the merge of this PR.

@@ -100,28 +102,43 @@ func (t *table) addRow(r Row) {
t.Rows = append(t.Rows, r)
}

func (t *table) dump(w io.Writer) {
func (t *table) dump(w io.Writer) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not positive if this is an interface definition somewhere - if so would appreciate feedback for expectations on linting. (IE should we flag as //nolint:errcheckl?)

Copy link
Owner

Choose a reason for hiding this comment

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

@brandtkeller Thank you for looking into this! If memory serves.... dump was just used for debugging. So we could either omit the error aka _ = xxx at the call site or log it.

@@ -100,28 +102,43 @@ func (t *table) addRow(r Row) {
t.Rows = append(t.Rows, r)
}

func (t *table) dump(w io.Writer) {
func (t *table) dump(w io.Writer) error {
Copy link
Owner

Choose a reason for hiding this comment

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

@brandtkeller Thank you for looking into this! If memory serves.... dump was just used for debugging. So we could either omit the error aka _ = xxx at the call site or log it.

@derailed derailed merged commit 88b5994 into derailed:master Jul 16, 2025
3 checks passed
@derailed derailed mentioned this pull request Jul 16, 2025
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.

Update the tablewriter dependency + Implementation
2 participants