Skip to content

Commit 816cc24

Browse files
committed
fix: remove io.Writer from stop method in exec env
1 parent 3a9e52e commit 816cc24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/skaffold/actions/docker/exec_env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (e ExecEnv) Cleanup(ctx context.Context, out io.Writer) error {
130130
return nil
131131
}
132132

133-
func (e ExecEnv) Stop(out io.Writer) {
133+
func (e ExecEnv) Stop() {
134134
e.logger.Stop() // Print the logs of the containers that were not able to print during execution.
135135
}
136136

pkg/skaffold/actions/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (r Runner) cleanup(ctx context.Context, out io.Writer, ts []Task, execEnvs
104104
log.Entry(ctx).Debugf("Starting execution cleanup")
105105

106106
for _, execEnv := range execEnvs {
107-
execEnv.Stop(out)
107+
execEnv.Stop()
108108
}
109109

110110
for _, t := range ts {

pkg/skaffold/actions/runner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (me mockExecEnv) PrepareActions(ctx context.Context, out io.Writer, allbuil
6060
return me.MockActions, nil
6161
}
6262

63-
func (me mockExecEnv) Stop(out io.Writer) {}
63+
func (me mockExecEnv) Stop() {}
6464

6565
func (me mockExecEnv) Cleanup(ctx context.Context, out io.Writer) error {
6666
return nil

pkg/skaffold/actions/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ type ExecEnv interface {
4848
Cleanup(ctx context.Context, out io.Writer) error
4949

5050
// Stop stops any ongoing task started in the execution env necessary to run the tasks.
51-
Stop(out io.Writer)
51+
Stop()
5252
}

0 commit comments

Comments
 (0)