项目文件夹

文件
2026-07-13 12:27:58 +08:00

14 行
438 B
Go

//go:build darwin || windows
package fsutil
import "strings"
// NormalizeSecretName returns a canonical lowercase version of the secret
// name. On case-insensitive filesystems (macOS and Windows) secret names that
// differ only in case refer to the same underlying file, so we normalize to
// lowercase to avoid phantom duplicates and silent overwrites.
func NormalizeSecretName(name string) string {
return strings.ToLower(name)
}