mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
go-to-protobuf: use full path for go_package
This commit is contained in:
parent
469c4c4a30
commit
1723bb1f79
@ -47,7 +47,7 @@ type genProtoIDL struct {
|
||||
func (g *genProtoIDL) PackageVars(c *generator.Context) []string {
|
||||
if g.omitGogo {
|
||||
return []string{
|
||||
fmt.Sprintf("option go_package = %q;", g.localGoPackage.Name),
|
||||
fmt.Sprintf("option go_package = %q;", g.localGoPackage.Package),
|
||||
}
|
||||
}
|
||||
return []string{
|
||||
@ -60,7 +60,7 @@ func (g *genProtoIDL) PackageVars(c *generator.Context) []string {
|
||||
"option (gogoproto.goproto_unrecognized_all) = false;",
|
||||
"option (gogoproto.goproto_enum_prefix_all) = false;",
|
||||
"option (gogoproto.goproto_getters_all) = false;",
|
||||
fmt.Sprintf("option go_package = %q;", g.localGoPackage.Name),
|
||||
fmt.Sprintf("option go_package = %q;", g.localGoPackage.Package),
|
||||
}
|
||||
}
|
||||
func (g *genProtoIDL) Filename() string { return g.OptionalName + ".proto" }
|
||||
|
Loading…
Reference in New Issue
Block a user