diff --git a/pkg/golinters/govet/testdata/govet.go b/pkg/golinters/govet/testdata/govet.go index 4830306735af6..9c0526512f0ed 100644 --- a/pkg/golinters/govet/testdata/govet.go +++ b/pkg/golinters/govet/testdata/govet.go @@ -9,7 +9,7 @@ import ( ) func GovetComposites() error { - return &os.PathError{"first", "path", os.ErrNotExist} // want "composites: io/fs\\.PathError struct literal uses unkeyed fields" + return &os.PathError{"first", "path", os.ErrNotExist} // want "composites: (os|io/fs)\\.PathError struct literal uses unkeyed fields" } func GovetShadow(f io.Reader, buf []byte) (err error) {