Skip to content

Commit e09cf37

Browse files
authored
update atlas-app-toolkit dependency to v2 (#21)
1 parent dd860ce commit e09cf37

File tree

9 files changed

+28
-249
lines changed

9 files changed

+28
-249
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.13.0-alpine AS builder
1+
FROM golang:1.19.0-alpine AS builder
22

33
LABEL stage=server-intermediate
44

example/example.pb.atlas.query.validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package example
22

33
import (
4-
query "github.com/infobloxopen/atlas-app-toolkit/query"
4+
query "github.com/infobloxopen/atlas-app-toolkit/v2/query"
55
options "github.com/infobloxopen/protoc-gen-atlas-query-validate/options"
66
)
77

example/example.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package example;
44

55
import "google/protobuf/wrappers.proto";
66
import "github.com/infobloxopen/protoc-gen-atlas-query-validate/options/query_validate.proto";
7-
import "github.com/infobloxopen/atlas-app-toolkit/query/collection_operators.proto";
7+
import "github.com/infobloxopen/atlas-app-toolkit/v2/query/collection_operators.proto";
88

99
option go_package = "github.com/infobloxopen/protoc-gen-atlas-query-validate/example;example";
1010

example/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package example
33
import (
44
"testing"
55

6-
"github.com/infobloxopen/atlas-app-toolkit/query"
6+
"github.com/infobloxopen/atlas-app-toolkit/v2/query"
77
)
88

99
func TestValidateFiltering(t *testing.T) {

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ module github.com/infobloxopen/protoc-gen-atlas-query-validate
33
go 1.19
44

55
require (
6-
github.com/infobloxopen/atlas-app-toolkit v0.24.1-0.20210416193901-4c7518b07e08
7-
google.golang.org/protobuf v1.27.1
6+
github.com/infobloxopen/atlas-app-toolkit/v2 v2.2.1
7+
google.golang.org/protobuf v1.33.0
88
)
99

1010
require (
11-
github.com/golang/protobuf v1.5.2 // indirect
11+
github.com/golang/protobuf v1.5.4 // indirect
1212
github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 // indirect
13-
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
14-
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
15-
golang.org/x/text v0.3.5 // indirect
13+
golang.org/x/net v0.20.0 // indirect
14+
golang.org/x/sys v0.16.0 // indirect
15+
golang.org/x/text v0.14.0 // indirect
1616
google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced // indirect
1717
google.golang.org/grpc v1.38.0 // indirect
1818
)

go.sum

Lines changed: 14 additions & 235 deletions
Large diffs are not rendered by default.

options/query_validate.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"strings"
77

8-
"github.com/infobloxopen/atlas-app-toolkit/query"
8+
"github.com/infobloxopen/atlas-app-toolkit/v2/query"
99
)
1010

1111
type FilteringOptions struct {

plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ func (p *QueryValidateBuilder) getDenyRules(fieldName string, opts *options.Quer
687687
}
688688

689689
func (p *QueryValidateBuilder) genValidateFiltering(g *protogen.GeneratedFile) {
690-
generateImport("Filtering", "github.com/infobloxopen/atlas-app-toolkit/query", g)
690+
generateImport("Filtering", "github.com/infobloxopen/atlas-app-toolkit/v2/query", g)
691691
g.P(`func `, p.validateFilteringMethodName, `(methodName string, f *query.Filtering) error {`)
692692
g.P(`info, ok := `, p.requiredFilteringValidationVarName, `[methodName]`)
693693
g.P(`if !ok {`)

0 commit comments

Comments
 (0)