all: Update protobuf package 1.0.0 -> 1.2.0 (#5452)
Also adds a few file global options to keep the generated code similar to what we already had.
This commit is contained in:
4
vendor/github.com/gogo/protobuf/version/version.go
generated
vendored
4
vendor/github.com/gogo/protobuf/version/version.go
generated
vendored
@@ -40,7 +40,7 @@ func Get() string {
|
||||
version := strings.TrimSpace(string(versionBytes))
|
||||
versions := strings.Split(version, " ")
|
||||
if len(versions) != 2 {
|
||||
panic("version string returned from protoc is seperated with a space: " + version)
|
||||
panic("version string returned from protoc is separated with a space: " + version)
|
||||
}
|
||||
return versions[1]
|
||||
}
|
||||
@@ -48,7 +48,7 @@ func Get() string {
|
||||
func parseVersion(version string) (int, error) {
|
||||
versions := strings.Split(version, ".")
|
||||
if len(versions) != 3 {
|
||||
return 0, fmt.Errorf("version does not have 3 numbers seperated by dots: %s", version)
|
||||
return 0, fmt.Errorf("version does not have 3 numbers separated by dots: %s", version)
|
||||
}
|
||||
n := 0
|
||||
for _, v := range versions {
|
||||
|
||||
Reference in New Issue
Block a user