Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
8136ccb2
Commit
8136ccb2
authored
Sep 12, 2017
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix go example test.
It needs "-I" flag to find imported file google/protobuf/timestamp.proto
parent
ed0a07ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
examples/Makefile
+3
-3
tests.sh
tests.sh
+1
-1
No files found.
examples/Makefile
View file @
8136ccb2
...
...
@@ -22,12 +22,12 @@ clean:
rmdir
com 2>/dev/null
||
true
protoc_middleman
:
addressbook.proto
protoc
--cpp_out
=
.
--java_out
=
.
--python_out
=
.
addressbook.proto
protoc
$$
PROTO_PATH
--cpp_out
=
.
--java_out
=
.
--python_out
=
.
addressbook.proto
@
touch
protoc_middleman
protoc_middleman_go
:
addressbook.proto
mkdir
tutorial
# make directory for go package
protoc
--go_out
=
tutorial addressbook.proto
mkdir
-p
tutorial
# make directory for go package
protoc
$$
PROTO_PATH
--go_out
=
tutorial addressbook.proto
@
touch
protoc_middleman_go
add_person_cpp
:
add_person.cc protoc_middleman
...
...
tests.sh
View file @
8136ccb2
...
...
@@ -129,7 +129,7 @@ build_golang() {
export
PATH
=
"
$GOPATH
/bin:
$PATH
"
go get github.com/golang/protobuf/protoc-gen-go
cd
examples
&&
make gotest
&&
cd
..
cd
examples
&&
PROTO_PATH
=
"-I../src -I."
make gotest
&&
cd
..
}
use_java
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment