-
Notifications
You must be signed in to change notification settings - Fork 207
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
linters: enable contextcheck #1790
linters: enable contextcheck #1790
Conversation
Signed-off-by: Oleksandr Redko <[email protected]>
@vrothberg PTAL |
@Luap99 PTAL |
@@ -37,7 +38,7 @@ func (i *Image) Tree(traverseChildren bool) (string, error) { | |||
fmt.Fprintf(sb, "No Image Layers") | |||
} | |||
|
|||
layerTree, err := i.runtime.layerTree(nil) |
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.
Wouldn't it make sense to force users of libimage to pass in a context
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.
That would be breaking API change, and so far I do not see the need of the context so this would juts make our live harder when vendoring into podman/buildah.
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
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexandear, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
The PR enables
contextcheck
linter and fixes up its issues in thelibimage
package.