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

Delete unnecessary dependency for pretty printing in an example #1187

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

das7pad
Copy link
Contributor

@das7pad das7pad commented Feb 18, 2023

Summary

Hi! I noticed an unnecessary dependency for pretty printing in an example. This PR is dropping it in favor of using plain std-lib formatting.

%#v is supported in go1.13.
Ref: https://github.com/golang/go/blob/go1.13/src/fmt/doc.go#L18

I tried to update/re-generate the THIRD-PARTY-NOTICES, but the diff contains lots of unrelated changes (on a glance, this might be a change in sorting only). I can delete the two related entries by hand too.

Background & Motivation

I want to cleanup spurious items from go.mod/go.sum in my application.

@matthewdale matthewdale self-requested a review February 24, 2023 19:12
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

@das7pad thanks for the PR! Looks good 👍

If you want to remove the entry for github.com/kr/pretty from THIRD_PARTY_LICENSES by hand, please feel free to. Otherwise, I can regenerate the THIRD_PARTY_LICENSES to update it later.

I'll merge this once the build and test process completes successfully!

Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

@das7pad thank you for the THIRD-PARTY-NOTICES updates! Changes and tests look good 👍

@matthewdale matthewdale merged commit 6cccf9f into mongodb:master Feb 27, 2023
@das7pad das7pad deleted the drop-pretty-dependency branch February 27, 2023 19:39
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