From 51a84fe86c03e8c41fae3b5ce600bf906bb32b16 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 8 Apr 2022 14:56:48 +0200 Subject: [PATCH] cli/command: fix documentation of CopyToFile mentioning ioutil The package we're using was updated, so this no longer was correct. Signed-off-by: Sebastiaan van Stijn --- cli/command/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/utils.go b/cli/command/utils.go index dff881f49e..0bfac723ff 100644 --- a/cli/command/utils.go +++ b/cli/command/utils.go @@ -19,7 +19,7 @@ import ( // CopyToFile writes the content of the reader to the specified file func CopyToFile(outfile string, r io.Reader) error { // We use sequential file access here to avoid depleting the standby list - // on Windows. On Linux, this is a call directly to ioutil.TempFile + // on Windows. On Linux, this is a call directly to os.CreateTemp tmpFile, err := system.TempFileSequential(filepath.Dir(outfile), ".docker_temp_") if err != nil { return err