google.golang.org/grpc/internal/transport
/home/mxy/golandd/go1.17.2.linux-amd64/go/src/google.golang.org/grpc/internal/transport/http_util.go:394:23: cannot use "vendor/golang.org/x/net/http2/hpack".NewDecoder(http2InitHeaderTableSize, nil) (type *"vendor/golang.org/x/net/http2/hpack".Decoder) as type *"golang.org/x/net/http2/hpack".Decoder in assignment
可以看到前后其实是一个类型,但是goland编译器报错了
解决方式:
将vendor中用到的包"vendor/golang.org/x/net/http2/hpack"复制一份放到$GOPATH下即可
(不懂的同学可以私信问我)