Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-20 17:23:49 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-20 17:23:49 +0300
commitd54f7f25a1c8d3eba3ac66f62c56d599ca36986b (patch)
tree8fd85e37bd9e36f485f22eabe9000cb74da9f1cf /cmd
parentaf5cd856461519c3f6c1d508eabb40aced2ff384 (diff)
global: Replace deprecated usage of `ioutil.WriteFile()`
With Go 1.16, the ioutil package was deprecated. Replace our usage of `ioutil.WriteFile()` with `os.WriteFile()` to adapt accordingly.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gitaly-hooks/hooks_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/gitaly-hooks/hooks_test.go b/cmd/gitaly-hooks/hooks_test.go
index c71daf429..93d980bdd 100644
--- a/cmd/gitaly-hooks/hooks_test.go
+++ b/cmd/gitaly-hooks/hooks_test.go
@@ -5,7 +5,6 @@ import (
"context"
"encoding/json"
"fmt"
- "io/ioutil"
"os"
"os/exec"
"path"
@@ -786,7 +785,7 @@ func writeTemporaryGitalyConfigFile(t testing.TB, tempDir, gitlabURL, user, pass
password = %q
`, gitlabURL, secretFile, user, password)
- require.NoError(t, ioutil.WriteFile(path, []byte(contents), 0o644))
+ require.NoError(t, os.WriteFile(path, []byte(contents), 0o644))
return path, func() {
require.NoError(t, os.RemoveAll(path))
}