generate: prohibit "private" as a package name

This commit is contained in:
Nigel Tao committed 2023-10-24 20:54:49 +11:00
1 parent dd75f3215a
commit b4c70c39bc
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ func checkPackageName(s string) string {
// Deny certain package names.
switch s {
case "base", "base_private", "base_private_header", "base_public", "base_public_header",
"config", "implementation", "include_guard", "initialize", "version":
"config", "implementation", "include_guard", "initialize", "private", "version":
return ""
}
return s