Skip to content

Commit 405565c

Browse files
committed
Fix lint CI
The CI was broken because of a more or less parallel merge and now it's fixed again. Signed-off-by: Sascha Grunert <[email protected]>
1 parent 29413d8 commit 405565c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ run:
1111
- exclude_graphdriver_btrfs
1212
# needs devmapper headers installed
1313
- exclude_graphdriver_devicemapper
14-
# remove this tag when golangci lint supports go 1.18 and generics │noctx: noctx finds sending http request without context.Context [fast: false, auto-fix: false]
15-
- skip_pod_runtime
1614
concurrency: 6
1715
deadline: 10m
1816
linters:

internal/oci/runtime_oci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ func (r *runtimeOCI) UpdateContainerStatus(ctx context.Context, c *Container) er
925925
// We always populate the fields below so kube can restart/reschedule
926926
// containers failing.
927927
if exitErr, isExitError := err.(*exec.ExitError); isExitError {
928-
log.Errorf(ctx, "Failed to update container state for %s: stdout: %s, stderr: %s", c.ID(), string(out), string(exitErr.Stderr))
928+
log.Errorf(ctx, "Failed to update container state for %s: stdout: %s, stderr: %s", c.ID(), out, string(exitErr.Stderr))
929929
} else {
930930
log.Errorf(ctx, "Failed to update container state for %s: %v", c.ID(), err)
931931
}

internal/oci/runtime_pod.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ func (r *runtimePod) StartContainer(ctx context.Context, c *Container) error {
135135
return r.oci.StartContainer(ctx, c)
136136
}
137137

138-
func (r *runtimePod) ExecContainer(ctx context.Context, c *Container, cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize) error {
139-
return r.oci.ExecContainer(ctx, c, cmd, stdin, stdout, stderr, tty, resize)
138+
func (r *runtimePod) ExecContainer(ctx context.Context, c *Container, cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, resizeChan <-chan remotecommand.TerminalSize) error {
139+
return r.oci.ExecContainer(ctx, c, cmd, stdin, stdout, stderr, tty, resizeChan)
140140
}
141141

142142
func (r *runtimePod) ExecSyncContainer(ctx context.Context, c *Container, cmd []string, timeout int64) (*types.ExecSyncResponse, error) {

0 commit comments

Comments
 (0)