You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# github.com/ptt/pttweb/proto/man
proto/man/man.pb.go:463:57: unsafe.Slice requires go1.17 or later (-lang was set to go1.15; check go.mod)
proto/man/man.pb.go:463:70: unsafe.StringData requires go1.20 or later (-lang was set to go1.15; check go.mod)
proto/man/man.pb.go:470:32: predeclared any requires go1.18 or later (-lang was set to go1.15; check go.mod)
proto/man/man.pb.go:501:19: unsafe.Slice requires go1.17 or later (-lang was set to go1.15; check go.mod)
proto/man/man.pb.go:501:32: unsafe.StringData requires go1.20 or later (-lang was set to go1.15; check go.mod)
proto/man/man_grpc.pb.go:24:16: undefined: grpc.SupportPackageIsVersion9
proto/man/man_grpc.pb.go:48:41: undefined: grpc.StaticMethod
proto/man/man_grpc.pb.go:58:41: undefined: grpc.StaticMethod
proto/man/man_grpc.pb.go:99:38: undefined: grpc.ServiceRegistrar
# github.com/ptt/pttweb/proto/api
proto/api/board.pb.go:1282:59: unsafe.Slice requires go1.17 or later (-lang was set to go1.15; check go.mod)
proto/api/board.pb.go:1282:72: unsafe.StringData requires go1.20 or later (-lang was set to go1.15; check go.mod)
proto/api/board.pb.go:1289:34: predeclared any requires go1.18 or later (-lang was set to go1.15; check go.mod)
proto/api/board.pb.go:1346:49: predeclared any requires go1.18 or later (-lang was set to go1.15; check go.mod)
proto/api/board.pb.go:1354:19: unsafe.Slice requires go1.17 or later (-lang was set to go1.15; check go.mod)
proto/api/board.pb.go:1354:32: unsafe.StringData requires go1.20 or later (-lang was set to go1.15; check go.mod)
proto/api/board_grpc.pb.go:24:16: undefined: grpc.SupportPackageIsVersion9
proto/api/board_grpc.pb.go:54:41: undefined: grpc.StaticMethod
proto/api/board_grpc.pb.go:64:41: undefined: grpc.StaticMethod
proto/api/board_grpc.pb.go:147:40: undefined: grpc.ServiceRegistrar
proto/api/board_grpc.pb.go:64:41: too many errors
Planned repair steps:
Update go.mod golang version to 1.23
Update google.golang.org/grpc from v1.31.1 to v1.64.0
Build binary
Opt. 4. Update deprecated func grpc.Dial
The text was updated successfully, but these errors were encountered:
PichuChen
changed the title
Upgrade package for new protobuf
Update package for new protobuf
Apr 13, 2025
PichuChen
added a commit
to PichuChen/pttweb
that referenced
this issue
Apr 13, 2025
OS version:
Golang version
protoc-gen-go-grpc Version
protoc version:
Error message:
Planned repair steps:
go.mod
golang version to1.23
google.golang.org/grpc
fromv1.31.1
tov1.64.0
Opt. 4. Update deprecated func
grpc.Dial
The text was updated successfully, but these errors were encountered: