-
Notifications
You must be signed in to change notification settings - Fork 54
Update action.Action interface #687
Update action.Action interface #687
Conversation
The linter is failing on |
@radu-matei I think I don't have access to the logs of the |
pkg/action/install.go
Outdated
@@ -13,6 +13,9 @@ type Install struct { | |||
Driver driver.Driver // Needs to be more than a string | |||
} | |||
|
|||
// makes sure Install implements Action interface | |||
var _ Action = &Install{} |
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 think we used to put this check in _test.go
files, but I'm not sure this is consistent across the entire code base.
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 moved them to their respective test files 👍
e8d78dd
to
39ebb61
Compare
PTAL @radu-matei @michelleN |
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.
LGTM
Add static guards to check the actions implements the interface. Signed-off-by: Silvin Lubecki <[email protected]>
39ebb61
to
f8c4ef4
Compare
Rebased on top of master. |
All the action implementations added a 3rd argument
io.Writer
, but this change was never reflected to the actual interfaceaction.Action
.I also added static guards to check the actions implements the interface.
Signed-off-by: Silvin Lubecki [email protected]