forked from TrueCloudLab/restic
CI: update golangci-lint
Necessary to properly support Go 1.21.
This commit is contained in:
parent
59fe24cb2b
commit
5cd000f4b0
3 changed files with 3 additions and 5 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -255,7 +255,7 @@ jobs:
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||||
version: v1.52.2
|
version: v1.55.2
|
||||||
args: --verbose --timeout 5m
|
args: --verbose --timeout 5m
|
||||||
|
|
||||||
# only run golangci-lint for pull requests, otherwise ALL hints get
|
# only run golangci-lint for pull requests, otherwise ALL hints get
|
||||||
|
|
|
@ -123,9 +123,8 @@ func directoriesContentsDiff(dir1, dir2 string) string {
|
||||||
fmt.Fprintf(&out, "+%v\n", b.path)
|
fmt.Fprintf(&out, "+%v\n", b.path)
|
||||||
b = nil
|
b = nil
|
||||||
continue
|
continue
|
||||||
} else {
|
|
||||||
fmt.Fprintf(&out, "%%%v\n", a.path)
|
|
||||||
}
|
}
|
||||||
|
fmt.Fprintf(&out, "%%%v\n", a.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
a, b = nil, nil
|
a, b = nil, nil
|
||||||
|
|
|
@ -110,9 +110,8 @@ func (d *SnapshotsDir) Lookup(ctx context.Context, name string) (fs.Node, error)
|
||||||
return newSnapshotLink(d.root, inode, entry.linkTarget, entry.snapshot)
|
return newSnapshotLink(d.root, inode, entry.linkTarget, entry.snapshot)
|
||||||
} else if entry.snapshot != nil {
|
} else if entry.snapshot != nil {
|
||||||
return newDirFromSnapshot(d.root, inode, entry.snapshot)
|
return newDirFromSnapshot(d.root, inode, entry.snapshot)
|
||||||
} else {
|
|
||||||
return NewSnapshotsDir(d.root, inode, d.inode, d.dirStruct, d.prefix+"/"+name), nil
|
|
||||||
}
|
}
|
||||||
|
return NewSnapshotsDir(d.root, inode, d.inode, d.dirStruct, d.prefix+"/"+name), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, syscall.ENOENT
|
return nil, syscall.ENOENT
|
||||||
|
|
Loading…
Reference in a new issue