mwitkow / grpc-proxy

gRPC proxy is a Go reverse proxy that allows for rich routing of gRPC calls with minimum overhead.
Apache License 2.0
962 stars 210 forks source link

Fix for go-1.18, Errorf doesn't accept verb %w #58

Open mikelolasagasti opened 2 years ago

dbudworth commented 2 years ago

https://pkg.go.dev/fmt#Errorf

%w not accepted in 1.18?
https://go.dev/play/p/KztaAZ-xjmT indicates it does, what was the problem you ran in to?

mikelolasagasti commented 2 years ago

The error I get is:

./testping.go:102:5: (*testing.common).Errorf does not support error-wrapping directive %w
dbudworth commented 2 years ago

oops, my mistake. For some reason I read this as fmt.Errorf, not t.Errorf