fix(os): add mapping OS aliases (#8466)

This commit is contained in:
afdesk
2025-03-03 16:04:51 +06:00
committed by GitHub
parent af1ea64f73
commit 6b4cebe959

View File

@@ -44,12 +44,16 @@ const (
)
// OSTypeAliases is a map of aliases for operating systems.
// This is used to map the old family names to the new ones for backward compatibility.
var OSTypeAliases = map[OSType]OSType{
// This is used to map the old family names to the new ones for backward compatibility.
"opensuse.leap": OpenSUSELeap,
"opensuse.tumbleweed": OpenSUSETumbleweed,
"suse linux enterprise micro": SLEMicro,
"suse linux enterprise server": SLES,
// This is used to map OS names in EKS
"amazon linux": Amazon,
// This is used to map OS names in Kind
"debian gnu/linux": Debian,
}
// Programming language dependencies