add .golangci.yaml

This commit is contained in:
Michael Yang
2023-12-15 14:25:12 -08:00
parent 997253143f
commit acfc376efd
7 changed files with 37 additions and 10 deletions

View File

@@ -26,9 +26,9 @@ func WriteManifest(name string, config *Layer, layers []*Layer) error {
return err
}
if err := os.MkdirAll(filepath.Dir(manifestPath), 0755); err != nil {
if err := os.MkdirAll(filepath.Dir(manifestPath), 0o755); err != nil {
return err
}
return os.WriteFile(manifestPath, b.Bytes(), 0644)
return os.WriteFile(manifestPath, b.Bytes(), 0o644)
}