Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(grpc): enable querying by protobuf struct tag #390

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -2817,6 +2817,33 @@ THE SOFTWARE.

================================================================

github.com/zoncoen/query-go/extractor/protobuf
https://github.com/zoncoen/query-go/extractor/protobuf
----------------------------------------------------------------
The MIT License (MIT)

Copyright (c) 2018 Kenta Mori

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

================================================================

github.com/zoncoen/query-go/extractor/yaml
https://github.com/zoncoen/query-go/extractor/yaml
----------------------------------------------------------------
Expand Down
7 changes: 2 additions & 5 deletions assert/assertion.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/goccy/go-yaml"
"github.com/zoncoen/query-go"
yamlextractor "github.com/zoncoen/query-go/extractor/yaml"

"github.com/zoncoen/scenarigo/errors"
"github.com/zoncoen/scenarigo/internal/queryutil"
"github.com/zoncoen/scenarigo/template"
)

Expand Down Expand Up @@ -58,10 +58,7 @@ func Build(ctx context.Context, expect any, fs ...BuildOpt) (Assertion, error) {
var assertions []Assertion
if expect != nil {
var err error
assertions, err = build(ctx, query.New(
query.ExtractByStructTag("yaml", "json"),
query.CustomExtractFunc(yamlextractor.MapSliceExtractFunc(false)),
), expect, &opt)
assertions, err = build(ctx, queryutil.New(), expect, &opt)
if err != nil {
return nil, fmt.Errorf("failed to build assertion: %w", err)
}
Expand Down
3 changes: 2 additions & 1 deletion context/extract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/zoncoen/query-go"
"github.com/zoncoen/scenarigo/internal/queryutil"
"github.com/zoncoen/scenarigo/reporter"
)

Expand Down Expand Up @@ -72,7 +73,7 @@ func TestContext_ExtractKey(t *testing.T) {
if test.ctx != nil {
ctx = test.ctx(ctx)
}
q, err := query.ParseString(test.query, query.ExtractByStructTag("json", "yaml"))
q, err := query.ParseString(test.query, queryutil.Options()...)
if err != nil {
t.Fatalf("unexpected error: %s", err)
}
Expand Down
10 changes: 2 additions & 8 deletions context/vars.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package context

import (
"github.com/zoncoen/query-go"
yamlextractor "github.com/zoncoen/query-go/extractor/yaml"
)
import "github.com/zoncoen/scenarigo/internal/queryutil"

// Vars represents context variables.
type Vars []interface{}
Expand All @@ -19,10 +16,7 @@ func (vars Vars) Append(v interface{}) Vars {

// ExtractByKey implements query.KeyExtractor interface.
func (vars Vars) ExtractByKey(key string) (interface{}, bool) {
k := query.New(
query.ExtractByStructTag("yaml", "json"),
query.CustomExtractFunc(yamlextractor.MapSliceExtractFunc(false)),
).Key(key)
k := queryutil.New().Key(key)
for i := len(vars) - 1; i >= 0; i-- {
if v, err := k.Extract(vars[i]); err == nil {
return v, true
Expand Down
7 changes: 4 additions & 3 deletions errors/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/pkg/errors"
"github.com/sergi/go-diff/diffmatchpatch"
"github.com/zoncoen/query-go"
"github.com/zoncoen/scenarigo/internal/queryutil"
)

func validatePath(t *testing.T, e *PathError, path string) {
Expand Down Expand Up @@ -61,7 +62,7 @@ func TestErrorPathf(t *testing.T) {
}

func TestErrorQueryf(t *testing.T) {
q, err := query.ParseString("path")
q, err := query.ParseString("path", queryutil.Options()...)
if err != nil {
t.Fatalf("%+v", err)
}
Expand Down Expand Up @@ -199,7 +200,7 @@ func TestWithPath(t *testing.T) {

func TestWithQuery(t *testing.T) {
t.Run("add path by query to pkg/errors instance", func(t *testing.T) {
q, err := query.ParseString("path")
q, err := query.ParseString("path", queryutil.Options()...)
if err != nil {
t.Fatalf("%+v", err)
}
Expand All @@ -214,7 +215,7 @@ func TestWithQuery(t *testing.T) {
validatePath(t, e, "path")
})
t.Run("add path by query to PathError instance", func(t *testing.T) {
q, err := query.ParseString("b")
q, err := query.ParseString("b", queryutil.Options()...)
if err != nil {
t.Fatalf("%+v", err)
}
Expand Down
12 changes: 5 additions & 7 deletions examples/assert/plugin/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/goccy/go-yaml v1.11.2 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
Expand All @@ -17,12 +16,11 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/vmware-tanzu/carvel-ytt v0.45.4 // indirect
github.com/zoncoen/query-go v1.2.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.1.1 // indirect
golang.org/x/crypto v0.17.0 // indirect
github.com/zoncoen/query-go v1.3.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.2.1 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)
31 changes: 14 additions & 17 deletions examples/assert/plugin/src/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ=
github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
Expand Down Expand Up @@ -44,30 +42,29 @@ github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/vmware-tanzu/carvel-ytt v0.45.4 h1:SVYpBFlyskEmCHAP9jt/mJD8HgCQYSMmnhMzpYepypQ=
github.com/vmware-tanzu/carvel-ytt v0.45.4/go.mod h1:oHqFBnn/JvqaUjcQo9T/a/WPUP1ituKjUpFPH+BTzfc=
github.com/zoncoen/query-go v1.2.1 h1:enpkODFhqsfHKK8QlwQfdMmdl0wLGLi4Qro31MsZ4Lo=
github.com/zoncoen/query-go v1.2.1/go.mod h1:4ZoOJb0AeccYENjjd5HrkJEsj1WyE6oHxSw3roqCj3M=
github.com/zoncoen/query-go/extractor/yaml v0.1.1 h1:EoP+NYZP/w7kYAuBTyVxcPDcdx5rg3T4cG6N9k/R8hE=
github.com/zoncoen/query-go/extractor/yaml v0.1.1/go.mod h1:LWxy+rYjBfI9zizXwx782SdU8ZHjjDJbCFuwrwMB9zs=
github.com/zoncoen/query-go v1.3.1 h1:7JZuqOKFNkLanCVvm3ufH5XMKuiCd+aks6txzhmy1ic=
github.com/zoncoen/query-go v1.3.1/go.mod h1:rbLi2EwarQtEJ5cNg9LFmAnleihBLsQSc1ow7vA8nms=
github.com/zoncoen/query-go/extractor/yaml v0.2.1 h1:eLLx27en7aHF75RxArM446Y1JNGYasTcY3tCjVUOPJE=
github.com/zoncoen/query-go/extractor/yaml v0.2.1/go.mod h1:bhwuZIYGnkm+IOdy6pTgL1oTb+cjHvLTCM0Nc4EWjvE=
github.com/zoncoen/scenarigo v0.15.1 h1:OxsH2o81lkpeC7d6y2cSw7SUN6UgcNydOL+hcLcI+lg=
github.com/zoncoen/scenarigo v0.15.1/go.mod h1:w3c/Oyvs+4QEng70twUE3d5xVLtP8ejRT/bxmN10NWI=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4=
google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=
google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 h1:wpZ8pe2x1Q3f2KyT5f8oP/fa9rHAKgFPr/HZdNuS+PQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 h1:Jyp0Hsi0bmHXG6k9eATXoYtjd6e2UzZ1SCn/wIupY14=
google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0=
google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
16 changes: 7 additions & 9 deletions examples/step-if/plugin/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ module github.com/zoncoen/scenarigo/examples/step-if/plugin
go 1.20

require (
github.com/google/uuid v1.3.1
github.com/google/uuid v1.4.0
github.com/zoncoen/scenarigo v0.15.1
)

require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/goccy/go-yaml v1.11.2 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
Expand All @@ -20,14 +19,13 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/vmware-tanzu/carvel-ytt v0.45.4 // indirect
github.com/zoncoen/query-go v1.2.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.1.1 // indirect
golang.org/x/crypto v0.17.0 // indirect
github.com/zoncoen/query-go v1.3.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.2.1 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)

replace github.com/google/uuid v1.3.1 => github.com/google/uuid v1.3.0
replace github.com/google/uuid v1.4.0 => github.com/google/uuid v1.3.0
31 changes: 14 additions & 17 deletions examples/step-if/plugin/src/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ=
github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
Expand Down Expand Up @@ -46,30 +44,29 @@ github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/vmware-tanzu/carvel-ytt v0.45.4 h1:SVYpBFlyskEmCHAP9jt/mJD8HgCQYSMmnhMzpYepypQ=
github.com/vmware-tanzu/carvel-ytt v0.45.4/go.mod h1:oHqFBnn/JvqaUjcQo9T/a/WPUP1ituKjUpFPH+BTzfc=
github.com/zoncoen/query-go v1.2.1 h1:enpkODFhqsfHKK8QlwQfdMmdl0wLGLi4Qro31MsZ4Lo=
github.com/zoncoen/query-go v1.2.1/go.mod h1:4ZoOJb0AeccYENjjd5HrkJEsj1WyE6oHxSw3roqCj3M=
github.com/zoncoen/query-go/extractor/yaml v0.1.1 h1:EoP+NYZP/w7kYAuBTyVxcPDcdx5rg3T4cG6N9k/R8hE=
github.com/zoncoen/query-go/extractor/yaml v0.1.1/go.mod h1:LWxy+rYjBfI9zizXwx782SdU8ZHjjDJbCFuwrwMB9zs=
github.com/zoncoen/query-go v1.3.1 h1:7JZuqOKFNkLanCVvm3ufH5XMKuiCd+aks6txzhmy1ic=
github.com/zoncoen/query-go v1.3.1/go.mod h1:rbLi2EwarQtEJ5cNg9LFmAnleihBLsQSc1ow7vA8nms=
github.com/zoncoen/query-go/extractor/yaml v0.2.1 h1:eLLx27en7aHF75RxArM446Y1JNGYasTcY3tCjVUOPJE=
github.com/zoncoen/query-go/extractor/yaml v0.2.1/go.mod h1:bhwuZIYGnkm+IOdy6pTgL1oTb+cjHvLTCM0Nc4EWjvE=
github.com/zoncoen/scenarigo v0.15.1 h1:OxsH2o81lkpeC7d6y2cSw7SUN6UgcNydOL+hcLcI+lg=
github.com/zoncoen/scenarigo v0.15.1/go.mod h1:w3c/Oyvs+4QEng70twUE3d5xVLtP8ejRT/bxmN10NWI=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4=
google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=
google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 h1:wpZ8pe2x1Q3f2KyT5f8oP/fa9rHAKgFPr/HZdNuS+PQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 h1:Jyp0Hsi0bmHXG6k9eATXoYtjd6e2UzZ1SCn/wIupY14=
google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0=
google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
12 changes: 5 additions & 7 deletions examples/ytt/plugin/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/goccy/go-yaml v1.11.2 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
Expand All @@ -17,12 +16,11 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/vmware-tanzu/carvel-ytt v0.45.4 // indirect
github.com/zoncoen/query-go v1.2.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.1.1 // indirect
golang.org/x/crypto v0.17.0 // indirect
github.com/zoncoen/query-go v1.3.1 // indirect
github.com/zoncoen/query-go/extractor/yaml v0.2.1 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)
Loading
Loading