-
Notifications
You must be signed in to change notification settings - Fork 23
Bump up golangci-bin version #33
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
Conversation
|
@antoninbas We found that golangci-bin v1.41.1 may introduce unexpected golint validation failures ( #31 ), so I make this patch to bump up its version to v1.50.0 which is used in antrea. Could you help review it? |
e18b6b8 to
bc1f1ba
Compare
78eebd8 to
a7a2dc5
Compare
|
Hi @antoninbas , I updated the patch to remove unused code ( all for padding messages), would you help review it again? |
openflow13/action.go
Outdated
| ActionHeader | ||
| MplsTtl uint8 | ||
| pad []byte // 3bytes | ||
| // 3 bytes for padding |
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.
isn't this comment a bit confusing here, since there is nothing in the struct enforcing that padding?
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 left this comment because the existing code does not provide the necessary implementations of a util.Message, so I want to leave some messages to avoid unexpected mistakes of misunderstanding when implementing the functions in future. In my latest change I add the required implementations, and removed this comment.
openflow13/action.go
Outdated
| ActionHeader | ||
| NwTtl uint8 | ||
| pad []byte // 3bytes | ||
| // 3 bytes for padding |
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.
ditto
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.
updated.
openflow15/action.go
Outdated
| ActionHeader | ||
| MplsTtl uint8 | ||
| pad []byte // 3bytes | ||
| // 3 bytes for padding |
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.
ditto, and same for other places below
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.
updated.
a7a2dc5 to
edb40cd
Compare
1. Bump up golangci-bin version to v1.50.0 2. Remove invalid configurations in golangci.yml 3. Formated several files 4. Removed unused code which is for padding messages Signed-off-by: wenyingd <[email protected]>
edb40cd to
1639eaf
Compare
Signed-off-by: wenyingd [email protected]