You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
style(#3160): use explicit 0o octal notation for file permissions
Replace all old-style Go octal literals (e.g., 0644, 0755) with the
explicit 0o prefix notation (0o644, 0o755) introduced in Go 1.13.
The 0o prefix makes the numeric base unambiguous and prevents
visual confusion with decimal numbers.
This is a semantics-preserving change across 42 files covering
production code, test files, acceptance tests, and benchmarks.
All os.OpenFile, os.WriteFile, os.MkdirAll, os.Chmod, os.Mkdir,
afero.WriteFile, and tar.Header Mode calls are updated.
Note: TestWriteReport in internal/validate failed due to sandbox
network restrictions (sigstore TUF CDN blocked), not related to
this change.
Closes#3160
0 commit comments