-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
build: Clean up "go vet" and "go lint" steps #2972
Conversation
// The actual return code is usually an uint16 (not sure why Go | ||
// uses uint32). The high 8 bits of that are the exit code from | ||
// the process, the lower 8 bits are signal info. | ||
return int(code >> 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this more magical than:
https://github.com/syncthing/syncthing/blob/master/cmd/syncthing/monitor.go#L146
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed the exit status checking stupidity, thanks for catching it. |
@st-review merge |
🕐 Build status is |
Purpose
Vet was ugly, and was ignoring a composite literal warning for historical reasons. There is no reason to ignore it now. Also doing a bit better detection of the difference between an error because vet complains and an error because vet isn't installed.