fileperms: newer Go 1.13+ octal literal format

Problem: While removing cgroupsv1 code, I noticed my neovim Go config
automatically changed fileperms to the new octal format and I didn't
want that polluting my diffs.

Decision: I thought it best to switch to the new octal format in a dedicated PR.

Action:
- Cursor switched to new octal format for all fileperm ocurrences in Go
 source and test files.
- vendor/, docs/ and non-Go files were ignored.
- Reviewed manually.

Ref: https://go.dev/ref/spec#Go_1.13

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar
2025-10-15 09:39:18 -04:00
parent ab7abbab67
commit 74788a3fe1
94 changed files with 382 additions and 382 deletions

View File

@@ -66,7 +66,7 @@ func NewSqliteState(runtime *Runtime) (_ State, defErr error) {
// c/storage is set up *after* the DB - so even though we use the c/s
// root (or, for transient, runroot) dir, we need to make the dir
// ourselves.
if err := os.MkdirAll(basePath, 0700); err != nil {
if err := os.MkdirAll(basePath, 0o700); err != nil {
return nil, fmt.Errorf("creating root directory: %w", err)
}