mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
Convert - to _ for protobuf package names
Convert - to _ for protobuf package names to allow protobuf code generation support for go packages that have - in their names.
This commit is contained in:
@@ -138,9 +138,6 @@ func Run(g *Generator) {
|
||||
d = d[1:]
|
||||
outputPackage = false
|
||||
}
|
||||
if strings.Contains(d, "-") {
|
||||
log.Fatalf("Package names must be valid protobuf package identifiers, which allow only [a-z0-9_]: %s", d)
|
||||
}
|
||||
name := protoSafePackage(d)
|
||||
parts := strings.SplitN(d, "=", 2)
|
||||
if len(parts) > 1 {
|
||||
|
||||
Reference in New Issue
Block a user