mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
update golangci-lint to version 1.51.1
The new version contains the ginkgolinter, which makes sure the assertions are more helpful. Also replace the deprecated os.SEEK_END with io.SeekEnd. There is also a new `musttag` linter which checks if struct that are un/marshalled all have json tags. This results in many warnings so I disabled the check for now. We can reenable it if we think it is worth it but for now it way to much work to fix all report problems. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -91,7 +91,7 @@ func (e EventLogFile) writeString(s string) error {
|
||||
|
||||
func (e EventLogFile) getTail(options ReadOptions) (*tail.Tail, error) {
|
||||
reopen := true
|
||||
seek := tail.SeekInfo{Offset: 0, Whence: os.SEEK_END}
|
||||
seek := tail.SeekInfo{Offset: 0, Whence: io.SeekEnd}
|
||||
if options.FromStart || !options.Stream {
|
||||
seek.Whence = 0
|
||||
reopen = false
|
||||
|
Reference in New Issue
Block a user