Commit Graph

214 Commits

Author SHA1 Message Date
Josh Humphries 1986364acd make go.sum authoritative 2021-04-30 17:15:18 -04:00
Erik Johansson bdf97bc934
Bump grpc-go to 1.37.0 (#230)
Pulls in support for XDS v3
2021-04-29 10:48:41 -04:00
Z. Liu 2f55ac63a4
release binaries for arm64 (#220) 2021-04-02 08:06:16 -04:00
Joshua Humphries 8d7770a962
use latest version of protoreflect (#212) 2021-02-22 17:32:40 -05:00
Leonhard Markert 1f34448998
Help text for "-H" option: remove duplicated word (#207) 2021-02-01 10:31:49 -05:00
Josh Humphries 06a970022e darwin/386... 🤦 2021-01-05 12:42:15 -05:00
Josh Humphries db90ec1160 go 1.15 no longer supports darwin/386; ignore any IDE config folder 2021-01-05 12:39:34 -05:00
Mikhail Katychev 9da71fbe53
when -format-error option is used, format service reflection errors, too (#188) 2020-09-30 13:24:46 -04:00
Guilherme Salazar 9846afccbc
feat: add support for user-agent header (#182) 2020-09-04 11:31:28 -04:00
Joshua Humphries ba5f667e13
fix latest CI breakages by forking code from grpc-go's interop/testing
Also moves testing package to internal/testing
2020-08-31 14:44:59 -04:00
Joshua Humphries 54ffdcacda
fix typo 2020-08-24 13:58:09 -04:00
Joshua Humphries ceef817807
make use of -plaintext flag more clear in examples 2020-08-24 13:56:57 -04:00
Sergei Vorobev e544b9e66f
Print size of the message in very verbose mode (#181)
Adds -vv flag for "very verbose".
Includes estimated message size when enabled. The size is an estimate because it is the canonical size for the proto message, but not necessarily its actual on-the-wire size.
2020-08-14 11:02:42 -04:00
Joshua Humphries 41a6ac0479
no more support for go 1.11 without modules (#180) 2020-07-31 12:26:31 -04:00
Joshua Humphries f37ec641c5
make release work... (#179) 2020-07-30 22:10:03 -04:00
Adam Babik 8e51c5e2d3
cmd/grpcurl: add -allow-unknown-fields option (#147) 2020-07-23 10:54:06 -04:00
Joshua Humphries 8376c2f7bb
update `go get` line in README
Go tool needs to also gets dependencies for sub-packages
2020-07-20 12:46:55 -04:00
Joshua Humphries 0162fa9726
go.mod and Makefile tweaks; move import of xds package to cmd/grpcurl (#170) 2020-07-14 12:20:32 -04:00
Erik Johansson b8c67b7a4e
Bump grpc-go to 1.30.0 (#168)
* Bump grpc-go to 1.30.0
* Import new xds package instead of experimental

Co-authored-by: Erik Johansson <ejohansson@spotify.com>
2020-07-13 13:16:48 -04:00
Joshua Humphries ff114930fd
update travis badge and link 2020-07-09 20:53:23 -04:00
Joshua Humphries 5ad5edb29c
pin goreleaser in go.mod; fix config file so latest version accepts it; allow using go modules in 'make release' (#161) 2020-06-01 18:56:18 -04:00
Joshua Humphries 44547153b3
unpin Go point release and alpine version in Dockerfile (#162) 2020-05-15 11:40:32 -04:00
Joshua Humphries 2108c8f0b3
use go 1.13 to build docker image (#160) 2020-05-15 08:21:08 -04:00
Mikhail Katychev 36008aa111
Add -format-error option (#155) 2020-05-14 20:40:13 -04:00
Joshua Humphries 50833f1b21
upgrade deps; remove go 1.14 from go.mod (#158) 2020-05-14 20:00:04 -04:00
Joshua Humphries 939766fb42
Go tip does not like using string(i) where i untyped int (#159) 2020-05-14 19:38:08 -04:00
Joshua Humphries b58182a88d
get travis CI green again (#157)
* fix test to work w/ newer grpc repo; run 'make ci' to have it update go.mod and go.sum, trying to repro ci failure locally
* vet w/ go 1.13; use normal go proxy instead of direct in CI
2020-05-12 13:06:14 -04:00
Serge Bazanski 8e2cf9b3c2
fix crash when emitting empty messages in text format (#153) 2020-04-23 16:20:45 -04:00
Alexander Chiu 36f9e53dfd
Allow extra descriptor sources in reflection mode (#146)
Allows descriptors or proto files to be supplied that are used as an additional descriptor source when server reflection is used. This is needed to resolve message types embedded in an Any message, that the server has no knowledge of, as well as extensions that the server has no knowledge of.
2020-04-20 15:42:11 -04:00
Joshua Humphries bfbbed1d42
vet with modules (#150)
fixes CI failures caused by newer version of dependency introducing new deprecations that cause staticcheck violations
2020-04-16 15:27:01 -04:00
Johan Brandhorst 153d36db8c
Remove golang/protobuf/jsonpbtest dep (#145)
With 1.4.0 the golang/protobuf json testing protofiles
are being moved to [an internal package][1]. While this is
technically a breaking change, I doubt the maintainers
are going to reintroduce it, so I've copied the necessary
parts to our own testing protofile.

This allows users of this package and, more importantly,
grpcui to try 1.4.0 without this package having to migrate yet.
When it comes to migrating to 1.4.0, this should also make the
transition easier.

[1]: https://github.com/golang/protobuf/tree/v1.4.0-rc.4/internal/testprotos
2020-04-03 12:45:05 -04:00
Joshua Humphries 2af40876fc
drop Go 1.9 and 1.10 from CI; add 1.13 and 1.14 (#144) 2020-04-01 09:02:40 -04:00
Joshua Humphries 0218a7db67
add script and readme for creating new releases (#140) 2020-03-18 08:51:18 -04:00
Richard Belleville 96cfd48e32
Activate xDS support in grpcurl (#137) 2020-03-13 16:29:41 -04:00
Richard Belleville d30f3a01b7
Bump grpc to 1.28 (#136) 2020-03-12 18:55:09 -04:00
Joshua Humphries 0d669e78d0
use wrapped TransportCredentials instead of handling handshake in Dialer (#130)
* use wrapped TransportCredentials instead of handling handshake in Dialer, so that grpc library will use correct :scheme
* support -authority for TLS conns; now effectively supercedes -servername flag
2020-01-27 12:15:47 -05:00
Blake Williams 9572bd4525 Register gzip decoder (#124) 2019-11-26 08:55:50 -05:00
Joshua Humphries ccc9007156
add -protoset-out option (#120) 2019-09-30 09:50:17 -04:00
J M 9248ea0963 Add Expand Headers Feature (#117) 2019-09-26 17:26:38 -04:00
Joshua Humphries 4054d1d115
fix go.mod for Go 1.13 (#110) 2019-08-09 14:17:53 -04:00
Joshua Humphries 5631bba117
add official Dockerfile (#104) 2019-07-03 15:57:24 -04:00
Joshua Humphries 80425d1b17
use protoreflect 1.4.4 (#109) 2019-07-03 15:56:51 -04:00
Joshua Humphries 7e4045565f
update all deps; use new ResolveFilenames method (#103) 2019-05-24 10:26:38 -04:00
Joshua Humphries e5b4fc6cc0
add API to expose AnyResolver implementations backed by a DescriptorSource (#102) 2019-05-22 21:38:46 -04:00
Joshua Humphries 09c3d1d69e
use just-released v1.3.0 protoreflect (#101) 2019-05-22 16:20:41 -04:00
Joshua Humphries 5d6316f470
Adds support for showing error details (#98)
To better support printing of google.protobuf.Any messages (error details), this
also makes a few other changes:
1. Allows printing of unresolvable Any messages using an "@value" field in JSON output
   that has the base64-encoded embedded message data.
2. Improves support for "-format text" to show expanded Any messages if possible.
   (Due to limitations in underlying proto package, this will usually *not* be
   that helpful. But this should greatly improve with v2 of the go protobuf API.)
3. Addresses a TODO in existing AnyResolver code to lazily fetch descriptors
   as needed instead of having to download all files eagerly.
2019-04-09 09:34:39 -04:00
Joshua Humphries f0723c6273
fix flaky test (#93) 2019-03-25 10:34:32 -04:00
Joshua Humphries fe97274a1b
staticcheck no longer runs on Go 1.10 (#92)
* staticcheck no longer runs on Go 1.10, so run it on Go 1.11 in CI
* be explicit about default make target in .travis.yml
2019-03-22 14:35:01 -04:00
CodeLingo Team 1bbf8dae71 Fix function comments based on best practices from Effective Go (#87)
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-13 10:58:13 -04:00
Joshua Humphries 0fcd3253f6
latest protoreflect fixes some bugs in JSON marshaling/unmarshaling (#86) 2019-03-07 13:35:49 -05:00