Prefer errors.Is for os permission checks

Proprietary

Replace deprecated os.IsPermission(err) with errors.Is(err, fs.ErrPermission) (Go 1.16+).

org.openrewrite.golang.codequality.PreferErrorsIsForPermission
mod run . --recipe=org.openrewrite.golang.codequality.PreferErrorsIsForPermission

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.