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

[protobuf] Fix the default proto file path #15246

Merged
merged 2 commits into from
Dec 28, 2020

Conversation

JackBoosY
Copy link
Contributor

@JackBoosY JackBoosY commented Dec 22, 2020

Because the vcpkg policy is that all tools should be installed in the tools directory, this is inconsistent with the default installation path of protobuf itself(bin), which leads to the problem of protobuf automatically finding the include path.
Fix this.

See source code:
https://github.com/protocolbuffers/protobuf/blob/64dd751868d633421563e53e68da831a0a02c923/src/google/protobuf/compiler/command_line_interface.cc#L256-L272

fixes #15217.

Note: already tested the executable usage manually.

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels Dec 22, 2020
@JackBoosY
Copy link
Contributor Author

Hi @sighingnow, can you test this PR?

Thanks.

@sighingnow
Copy link
Contributor

Thanks for fixing that so quickly, will test it ASAP.

@JackBoosY
Copy link
Contributor Author

@sighingnow Does this work?

@sighingnow
Copy link
Contributor

@sighingnow Does this work?

Sorry for the delay, I will test it tonight after I back to home.

@sighingnow
Copy link
Contributor

@sighingnow Does this work?

Confirm fixed. @JackBoosY Thanks for your work! Now this PR should be mergeable.

@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Dec 24, 2020
@sighingnow
Copy link
Contributor

Could we get this one merged? Then we could submit our package port to vcpkg.

@JackBoosY
Copy link
Contributor Author

Ping @BillyONeal for merge this PR.

@BillyONeal BillyONeal merged commit 59c519f into microsoft:master Dec 28, 2020
@BillyONeal
Copy link
Member

Thanks for your help!

@JackBoosY JackBoosY deleted the dev/jack/15217 branch December 29, 2020 01:27
ryukw7 pushed a commit to ryukw7/vcpkg that referenced this pull request Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[protobuf and grpc] The installation location of protoc.exe, grpc_cpp_plugin.exe, etc. is not correct
4 participants