Skip to content

Commit

Permalink
all: fix interactions with latest v2 API
Browse files Browse the repository at this point in the history
Change test.bash to pass -tags=protolegacy instead of proto1_legacy.

Regenerate .pb.go files.

Change-Id: Ifd0633c20c5860de765fcef5d0eb6c5bf3e3f183
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/190979
Reviewed-by: Joe Tsai <[email protected]>
  • Loading branch information
neild committed Aug 20, 2019
1 parent ae1d65b commit b0a8cbb
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 74 deletions.
22 changes: 13 additions & 9 deletions protoc-gen-go/descriptor/descriptor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions protoc-gen-go/plugin/plugin.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/any/any.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/duration/duration.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/empty/empty.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/struct/struct.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/timestamp/timestamp.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions ptypes/wrappers/wrappers.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ PASS="\x1b[32mPASS"
FAIL="\x1b[31mFAIL"
RESET="\x1b[0m"

echo -e "${BOLD}go test -tags proto1_legacy ./...${RESET}"
RET_TEST0=$(go test -tags proto1_legacy ./... | egrep -v "^(ok|[?])\s+")
echo -e "${BOLD}go test -tags protolegacy ./...${RESET}"
RET_TEST0=$(go test -tags protolegacy ./... | egrep -v "^(ok|[?])\s+")
if [[ ! -z "$RET_TEST0" ]]; then echo "$RET_TEST0"; echo; fi

echo -e "${BOLD}go test -tags use_golang_protobuf_v1 ./...${RESET}"
Expand Down

0 comments on commit b0a8cbb

Please sign in to comment.