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

Re-enable golangci-lint #26

Merged
merged 1 commit into from
Sep 5, 2019
Merged

Re-enable golangci-lint #26

merged 1 commit into from
Sep 5, 2019

Conversation

rafaelvanoni
Copy link
Contributor

No description provided.

@@ -478,6 +495,6 @@ func main() {
initConfiguration()

if err = rootCmd.Execute(); err != nil {
genericUnsupported("not supported", "", err.Error())
_ = genericUnsupported("not supported", "", err.Error())
Copy link
Member

Choose a reason for hiding this comment

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

Should we handle this error explicitly? I think probably should at least log it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm a bit hesitant to log this since whoever's calling a command that isn't supported might be doing it periodically, and logging it would lead to large log files (similar to https://github.com/projectcalico/pod2daemon/issues/20). Wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

...but this is in main() and not one of the other similar calls, so ok :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

...and genericUnsupported() already logs it

@caseydavenport caseydavenport merged commit 31e26d1 into projectcalico:master Sep 5, 2019
@rafaelvanoni rafaelvanoni deleted the rafael-pod2daemon-2 branch September 5, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants