Skip to content

Commit

Permalink
use replace in ewamples and xdsmatcher (#912)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
  • Loading branch information
mmorel-35 authored Apr 2, 2024
1 parent 9c62c96 commit 7ddbdf5
Show file tree
Hide file tree
Showing 8 changed files with 883 additions and 114 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,9 @@ example: $(BINDIR)/example
docker_tests:
docker build --pull -f Dockerfile.ci . -t gcp_ci && \
docker run -v $$(pwd):/go-control-plane $$(tty -s && echo "-it" || echo) gcp_ci /bin/bash -c /go-control-plane/build/do_ci.sh

.PHONY: tidy-all
tidy-all:
go mod tidy
make -C examples/dyplomat tidy
make -C xdsmatcher tidy
4 changes: 2 additions & 2 deletions ci/sync_envoy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ sync_protos () {
cp -a "$envoy_src" "$src"
git add "$src"
done
go mod tidy
git add go.mod go.sum
make tidy-all
git add $(find -type f -name 'go.sum' -o -name 'go.mod')
}

commit_changes () {
Expand Down
4 changes: 4 additions & 0 deletions examples/dyplomat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ coverage:
go test ./... -race -covermode=atomic -coverprofile=coverage.out
coverage_html: coverage
go tool cover -html=coverage.out

.PHONY: tidy
tidy:
go mod tidy
11 changes: 7 additions & 4 deletions examples/dyplomat/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
Expand All @@ -40,8 +40,9 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/planetscale/vtprotobuf v0.5.1-0.20231212170721-e7d721933795 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
Expand All @@ -50,7 +51,7 @@ require (
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
Expand All @@ -65,3 +66,5 @@ require (
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/envoyproxy/go-control-plane => ../..
55 changes: 9 additions & 46 deletions examples/dyplomat/go.sum

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion xdsmatcher/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ coverage_html: coverage
proto: test/proto/*
protoc --proto_path=test/proto --go_out=test/proto --go_opt=paths=source_relative test.proto


.PHONY: tidy
tidy:
go mod tidy
17 changes: 11 additions & 6 deletions xdsmatcher/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ module github.com/envoyproxy/go-control-plane/xdsmatcher
go 1.17

require (
github.com/cncf/xds/go v0.0.0-20230428030218-4003588d1b74
github.com/envoyproxy/go-control-plane v0.11.1
github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa
github.com/envoyproxy/go-control-plane v0.12.0
github.com/stretchr/testify v1.9.0
google.golang.org/protobuf v1.33.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/planetscale/vtprotobuf v0.5.1-0.20231212170721-e7d721933795 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/envoyproxy/go-control-plane => ../
896 changes: 841 additions & 55 deletions xdsmatcher/go.sum

Large diffs are not rendered by default.

0 comments on commit 7ddbdf5

Please sign in to comment.