mirror of
https://github.com/fullstorydev/grpcurl.git
synced 2026-05-23 04:01:45 +03:00
Use latest protoreflect to fix some bugs (#453)
* update to latest jhump/protoreflect * be lenient when possible if server cannot furnish all dependencies * move linting back to go 1.21 instead of latest go 1.22 * make staticcheck happy
This commit is contained in:
@@ -2,7 +2,7 @@ package grpcurl
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/golang/protobuf/proto" //lint:ignore SA1019 we have to import this because it appears in exported API
|
||||
@@ -34,7 +34,7 @@ func TestWriteProtoset(t *testing.T) {
|
||||
}
|
||||
|
||||
func loadProtoset(path string) (*descriptorpb.FileDescriptorSet, error) {
|
||||
b, err := ioutil.ReadFile(path)
|
||||
b, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user