diff --git a/go.mod b/go.mod index 17377b5..8ce7869 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/golang-jwt/jwt/v5 v5.2.1 github.com/grafana/pyroscope-go v1.2.0 github.com/hashicorp/golang-lru/v2 v2.0.7 - github.com/jhump/protoreflect/v2 v2.0.0-20240207013822-c9ae7caed596 + github.com/jhump/protoreflect/v2 v2.0.0-beta.2 github.com/nautilus/gateway v0.4.0 github.com/nautilus/graphql v0.0.26 github.com/samber/lo v1.47.0 diff --git a/go.sum b/go.sum index 5e508e5..ef2e7fc 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLj github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= +github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= @@ -74,8 +76,8 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/jhump/protoreflect/v2 v2.0.0-20240207013822-c9ae7caed596 h1:iFogf83HbRoHQ0fU8is3OeZJmbSzSPvZx3KPkgNjFQQ= -github.com/jhump/protoreflect/v2 v2.0.0-20240207013822-c9ae7caed596/go.mod h1:H3njxouLe2ZGLFwYfmtEZ0YwhCI8iZlvt1lX5O+SfAQ= +github.com/jhump/protoreflect/v2 v2.0.0-beta.2 h1:qZU+rEZUOYTz1Bnhi3xbwn+VxdXkLVeEpAeZzVXLY88= +github.com/jhump/protoreflect/v2 v2.0.0-beta.2/go.mod h1:4tnOYkB/mq7QTyS3YKtVtNrJv4Psqout8HA1U+hZtgM= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= diff --git a/internal/server/fetch.go b/internal/server/fetch.go index cda23dc..1ea9d49 100644 --- a/internal/server/fetch.go +++ b/internal/server/fetch.go @@ -47,7 +47,7 @@ func (ins *reflection) ListPackages(ctx context.Context, cc grpc.ClientConnInter if isReflectionServiceName(string(s)) { continue } - svc, err := client.AsResolver().FindServiceByName(s) + svc, err := client.AsResolver().FindDescriptorByName(s) if err != nil { return nil, err }