File tree 6 files changed +12
-12
lines changed
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,8 @@ def go_third_party():
220
220
go_repository (
221
221
name = "com_github_lyft_protoc_gen_star_v2" ,
222
222
importpath = "github.com/lyft/protoc-gen-star/v2" ,
223
- sum = "h1:/3+/2sWyXeMLzKd1bX+ixWKgEMsULrIivpDsuaF441o =" ,
224
- version = "v2.0.3 " ,
223
+ sum = "h1:sIXJOMrYnQZJu7OB7ANSF4MYri2fTEGIsRLz6LwI4xE =" ,
224
+ version = "v2.0.4-0.20230330145011-496ad1ac90a4 " ,
225
225
)
226
226
go_repository (
227
227
name = "com_github_pkg_errors" ,
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/iancoleman/strcase v0.3.0
7
- github.com/lyft/protoc-gen-star/v2 v2.0.3
7
+ github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4
8
8
golang.org/x/net v0.20.0
9
9
google.golang.org/protobuf v1.32.0
10
10
)
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
125
125
github.com/kr/pretty v0.1.0 /go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo =
126
126
github.com/kr/pty v1.1.1 /go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ =
127
127
github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
128
- github.com/lyft/protoc-gen-star/v2 v2.0.3 h1:/3+/2sWyXeMLzKd1bX+ixWKgEMsULrIivpDsuaF441o =
129
- github.com/lyft/protoc-gen-star/v2 v2.0.3 /go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk =
128
+ github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4 h1:sIXJOMrYnQZJu7OB7ANSF4MYri2fTEGIsRLz6LwI4xE =
129
+ github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4 /go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk =
130
130
github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
131
131
github.com/pkg/sftp v1.13.1 /go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg =
132
132
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ pgv::Validator<{{ class . }}> {{ staticVarName . }}(static_cast<bool(*)(const {{
34
34
} // namespace validate
35
35
} // namespace pgv
36
36
37
- {{ range .Package.ProtoName.Split }}
37
+ {{ range .Package.ProtoName.SplitOnDot }}
38
38
namespace {{ . }} {
39
39
{{- end }}
40
40
41
41
{{ range .AllMessages }}
42
42
{{- template "msg" . }}
43
43
{{ end }}
44
44
45
- {{ range .Package.ProtoName.Split -}}
45
+ {{ range .Package.ProtoName.SplitOnDot -}}
46
46
} // namespace
47
47
{{ end }}
48
48
`
@@ -62,7 +62,7 @@ const headerFileTpl = `// Code generated by protoc-gen-validate
62
62
#include "validate/validate.h"
63
63
#include "{{ output .File ".h" }}"
64
64
65
- {{ range .Package.ProtoName.Split }}
65
+ {{ range .Package.ProtoName.SplitOnDot }}
66
66
namespace {{ . }} {
67
67
{{- end }}
68
68
@@ -72,7 +72,7 @@ using std::string;
72
72
{{- template "decl" . }}
73
73
{{ end }}
74
74
75
- {{ range .Package.ProtoName.Split -}}
75
+ {{ range .Package.ProtoName.SplitOnDot -}}
76
76
} // namespace
77
77
{{ end }}
78
78
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ func (fns CCFuncs) className(ent childEntity) string {
163
163
}
164
164
165
165
func (fns CCFuncs ) packageName (msg pgs.Entity ) string {
166
- return "::" + strings .Join (msg .Package ().ProtoName ().Split (), "::" )
166
+ return "::" + strings .Join (msg .Package ().ProtoName ().SplitOnDot (), "::" )
167
167
}
168
168
169
169
func (fns CCFuncs ) quote (s interface {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const headerFileTpl = `// Code generated by protoc-gen-validate
11
11
#include "validate/validate.h"
12
12
#include "{{ output .File ".h" }}"
13
13
14
- {{ range .Package.ProtoName.Split }}
14
+ {{ range .Package.ProtoName.SplitOnDot }}
15
15
namespace {{ . }} {
16
16
{{- end }}
17
17
@@ -21,7 +21,7 @@ using std::string;
21
21
extern inline bool Validate(__attribute__((unused)) const {{ class . }}& m, __attribute__((unused)) pgv::ValidationMsg* err) { return true; }
22
22
{{ end }}
23
23
24
- {{ range .Package.ProtoName.Split -}}
24
+ {{ range .Package.ProtoName.SplitOnDot -}}
25
25
} // namespace
26
26
{{ end }}
27
27
You can’t perform that action at this time.
0 commit comments