Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Allow protoc to be injected #98

Merged
merged 4 commits into from
Aug 24, 2016
Merged

Conversation

geigerj
Copy link
Contributor

@geigerj geigerj commented Aug 24, 2016

This allows packman to support languages like Python, where the
official way of doing grpc codegen is through a Python wrapper around
protoc.

Updates googleapis/gax-python#126

This allows packman to support languages like Python, where the
official way of doing grpc codegen is through a Python wrapper around
protoc.
@@ -434,7 +440,7 @@ function collectProtoDeps(includePath, protoFile, done) {
args.push(protoFile);
// Invokes protoc with --dependency_out to generate the dependency
// proto files.
execFile('protoc', args, {}, function(err) {
execFile(this.protoCompiler, args, {}, function(err) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately collectProtoDeps is not a method, this. wouldn't work well. Pass it as an argument, or modify the function itself ot a method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Made it into a method.

- Make a function into a method to reference 'this' correctly
- Fix failing tests
- Add new tests for new functionality
@jmuk
Copy link
Contributor

jmuk commented Aug 24, 2016

LGTM as long as the test passes.

@codecov-io
Copy link

codecov-io commented Aug 24, 2016

Current coverage is 88.78% (diff: 83.33%)

Merging #98 into master will increase coverage by 0.20%

@@             master        #98   diff @@
==========================================
  Files             3          3          
  Lines           718        722     +4   
  Methods         150        150          
  Messages          0          0          
  Branches        107        110     +3   
==========================================
+ Hits            636        641     +5   
+ Misses           82         81     -1   
  Partials          0          0          

Powered by Codecov. Last update aa3a73e...78c58a0

@geigerj geigerj merged commit c4e4d64 into googleapis:master Aug 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants