Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: use the official error_details.proto #3151

Merged
merged 5 commits into from
Jun 29, 2017

Conversation

dapengzhang0
Copy link
Member

The error_details.proto file in examples/src/main/proto/ was not originated from grpc-java.
It was officially opensourced at https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto

@@ -25,6 +25,7 @@ repositories {
def grpcVersion = '1.5.0-SNAPSHOT' // CURRENT_GRPC_VERSION

dependencies {
compile "com.google.api.grpc:grpc-google-common-protos:0.1.12"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should use proto-google-common-protos, not grpc-google-common-protos. See #2961 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Updated.

Copy link
Contributor

@ericgribkoff ericgribkoff left a comment

Choose a reason for hiding this comment

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

LGTM. I filed #3152 to follow-up on the build environment for proto-google-common-protos, which is already a dependency in grpc-protobuf.

@ejona86
Copy link
Member

ejona86 commented Jun 29, 2017

Maven build is pretty broken. See the Travis logs.

@dapengzhang0
Copy link
Member Author

That's interesting, the 1st commit using grpc-google-common-protos worked.

@ejona86
Copy link
Member

ejona86 commented Jun 29, 2017

FYI: this will conflict with #3150

@dapengzhang0
Copy link
Member Author

Is there any particular reason we use v0.1.9 in grpc-protobuf? Can we bump to v0.1.12 globally?

@dapengzhang0
Copy link
Member Author

proto-google-common-protos v0.1.9 pom.xml

<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.2.0</version>

proto-google-common-protos v0.1.12 pom.xml

<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.3.0</version>

@ejona86
Copy link
Member

ejona86 commented Jun 29, 2017

Let's add maven-enforcer-plugin to the pom.xml to detect problems like this in the future. It's important for our users to do the same:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.4.1</version>
        <executions>
          <execution>
            <id>enforce</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireUpperBoundDeps/>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>

@ejona86
Copy link
Member

ejona86 commented Jun 29, 2017

Actually, I'm just going to do the maven enforcer part in #3158.

@dapengzhang0 dapengzhang0 merged commit 4e31ccb into grpc:master Jun 29, 2017
@dapengzhang0 dapengzhang0 deleted the error_details branch August 13, 2017 05:18
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
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.

3 participants