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

Ignore flags added via init() #4781

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Ignore flags added via init() #4781

merged 2 commits into from
Apr 19, 2023

Conversation

andyasp
Copy link
Contributor

@andyasp andyasp commented Apr 19, 2023

What this PR does

When #4751 merged it introduced flags, but due to other CI noise did not run make reference-help. Flags were pulled in from an indirect dependency github.com/golang/glog. At first glance they seem possibly confusing so I marked them as advanced. Added a workaround to discard flags added via init().

Which issue(s) this PR fixes or relates to

Fixes N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@andyasp andyasp requested a review from a team as a code owner April 19, 2023 18:35
@andyasp andyasp marked this pull request as draft April 19, 2023 19:14
@andyasp
Copy link
Contributor Author

andyasp commented Apr 19, 2023

Flags are being added in init(), causing a unit test failure where they aren't registered.

@andyasp
Copy link
Contributor Author

andyasp commented Apr 19, 2023

Not sure of a nice way to fix this currently.

@andyasp andyasp changed the title Update reference-help and mark glog fields advanced Update reference-help Apr 19, 2023
@andyasp andyasp changed the title Update reference-help Ignore flags added via init() Apr 19, 2023
@andyasp andyasp marked this pull request as ready for review April 19, 2023 20:23
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@56quarters 56quarters merged commit dd59f7e into main Apr 19, 2023
@56quarters 56quarters deleted the aasp/reference-help branch April 19, 2023 20:37
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