-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c275d2
commit c6c66b5
Showing
8 changed files
with
66 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module github.com/lyft/protoc-gen-star | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/protobuf v1.2.0 | ||
github.com/spf13/afero v1.1.0 | ||
github.com/stretchr/testify v1.3.0 | ||
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 | ||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect | ||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 // indirect | ||
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= | ||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= | ||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||
github.com/spf13/afero v1.1.0 h1:bopulORc2JeYaxfHLvJa5NzxviA9PoWhpiiJkru7Ji4= | ||
github.com/spf13/afero v1.1.0/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= | ||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= | ||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= | ||
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 h1:rJm0LuqUjoDhSk2zO9ISMSToQxGz7Os2jRiOL8AWu4c= | ||
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= | ||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ= | ||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 h1:z99zHgr7hKfrUcX/KsoJk5FJfjTceCKIp96+biqP4To= | ||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635 h1:2eB4G6bDQDeP69ZXbOKC00S2Kf6TIiRS+DzfKsKeQU0= | ||
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,48 @@ | ||
.PHONY: testdata-go-names | ||
testdata-names: ../../bin/protoc-gen-debug # parse the proto file sets in testdata/names and renders binary CodeGeneratorRequest + official go codegen | ||
testdata-names: ../../bin/protoc-gen-debug ../../bin/protoc-gen-go # parse the proto file sets in testdata/names and renders binary CodeGeneratorRequest + official go codegen | ||
cd testdata/names && \ | ||
set -e; for subdir in `find . -type d -mindepth 1 -maxdepth 1`; do \ | ||
cd $$subdir; \ | ||
params=`cat params`; \ | ||
protoc -I . \ | ||
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ | ||
--debug_out=".:." \ | ||
--plugin=protoc-gen-go=../../../../../bin/protoc-gen-go \ | ||
--go_out="plugins,paths=source_relative,$$params:." \ | ||
`find . -name "*.proto"`; \ | ||
cd -; \ | ||
done | ||
|
||
testdata-packages: ../../bin/protoc-gen-debug | ||
testdata-packages: ../../bin/protoc-gen-debug ../../bin/protoc-gen-go | ||
cd testdata/packages && \ | ||
set -e; for subdir in `find . -type d -mindepth 1 -maxdepth 1 | grep -v targets`; do \ | ||
cd $$subdir; \ | ||
params=`cat params`; \ | ||
protoc -I . -I .. \ | ||
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ | ||
--debug_out=".:." \ | ||
--plugin=protoc-gen-go=../../../../../bin/protoc-gen-go \ | ||
--go_out="paths=source_relative,$$params:." \ | ||
`find . -name "*.proto"`; \ | ||
cd -; \ | ||
done | ||
|
||
testdata-outputs: ../../bin/protoc-gen-debug | ||
testdata-outputs: ../../bin/protoc-gen-debug ../../bin/protoc-gen-go | ||
cd testdata/outputs && \ | ||
set -e; for subdir in `find . -type d -mindepth 1 -maxdepth 1`; do \ | ||
cd $$subdir; \ | ||
params=`cat params`; \ | ||
protoc -I . -I .. \ | ||
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ | ||
--debug_out=".:." \ | ||
--plugin=protoc-gen-go=../../../../../bin/protoc-gen-go \ | ||
--go_out="$$params:." \ | ||
`find . -name "*.proto"`; \ | ||
cd -; \ | ||
done | ||
|
||
../../bin/protoc-gen-debug: | ||
cd ../.. && $(MAKE) bin/protoc-gen-debug | ||
|
||
../../bin/protoc-gen-go: | ||
cd ../.. && $(MAKE) bin/protoc-gen-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// +build tools | ||
|
||
package tools | ||
|
||
import ( | ||
_ "github.com/golang/protobuf/protoc-gen-go" | ||
_ "golang.org/x/lint/golint" | ||
) |