Merge pull request #5122 from restic/bump-golangci-lint

Bump go and golangci lint version
This commit is contained in:
Michael Eischer
2024-11-03 21:34:25 +01:00
committed by GitHub
16 changed files with 125 additions and 101 deletions

View File

@@ -365,12 +365,7 @@ func TestBackupExclude(t *testing.T) {
for _, filename := range backupExcludeFilenames {
fp := filepath.Join(datadir, filename)
rtest.OK(t, os.MkdirAll(filepath.Dir(fp), 0755))
f, err := os.Create(fp)
rtest.OK(t, err)
fmt.Fprint(f, filename)
rtest.OK(t, f.Close())
rtest.OK(t, os.WriteFile(fp, []byte(filename), 0o666))
}
snapshots := make(map[string]struct{})