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

grpc-tools: Update protoc to v3.19.1 #2253

Merged
merged 6 commits into from
Dec 1, 2022
Merged

Conversation

natiz
Copy link
Contributor

@natiz natiz commented Oct 25, 2022

No description provided.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 25, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: natiz / name: natiz (1247129)

@murgatroid99
Copy link
Member

It's not that simple to make this upgrade. See my comment at #2155 (comment)

@natiz
Copy link
Contributor Author

natiz commented Oct 26, 2022

Thanks for pointing it out!

I've set it v3.19.1 which seems to be the last release that includes javascript changes.
I am specifically interested in protocolbuffers/protobuf#8864 which is included in v3.19.0

@murgatroid99
Copy link
Member

That should be fine, but unfortunately I can't accept any change without the EasyCLA check. Please fix that.

@natiz natiz changed the title grpc-tools: Update protoc to v3.21.8 grpc-tools: Update protoc to v3.19.1 Oct 26, 2022
@murgatroid99
Copy link
Member

Also, it looks like the gRPC plugin failed to build on Windows because of some link errors.

last working version of protoc that includes javascript
@natiz
Copy link
Contributor Author

natiz commented Oct 26, 2022

I think its related to protocolbuffers/protobuf@c47adad (and this), but fiddling in the dark here. I'll try to resolve it.

@natiz
Copy link
Contributor Author

natiz commented Nov 27, 2022

Fixed the windows build

@murgatroid99
Copy link
Member

I had to push a fix for the Linux build. Can you merge from master to pick it up?

@murgatroid99
Copy link
Member

That cmake_minimum_required(VERSION 3.15) line is going to be an issue. We want to run the build on the oldest possible Debian LTS release, for maximum compatibility, but the latest Debian LTS version is Buster, which only has cmake 3.13.4.

@natiz
Copy link
Contributor Author

natiz commented Dec 1, 2022

Updated to 3.7, since I got this for 3.13: CMake 3.13 or higher is required. You are running version 3.7.2

@murgatroid99
Copy link
Member

OK, it works. Can you also update the version in the package.json to 1.12.0 so that I can publish the change immediately?

@natiz
Copy link
Contributor Author

natiz commented Dec 1, 2022

Sure, bumped.

Copy link
Member

@murgatroid99 murgatroid99 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution.

@murgatroid99 murgatroid99 merged commit 8d6b590 into grpc:master Dec 1, 2022
@murgatroid99
Copy link
Member

I have published this in version 1.12.0.

@natiz
Copy link
Contributor Author

natiz commented Dec 5, 2022

Looks like there is an issue with the binaries in 1.12.0, they are placed in a subfolder GNUSparseFile.0, which causes an ENOENT failure on bin/protoc.

1.12.0:

> find node_modules/grpc-tools/bin
node_modules/grpc-tools/bin
node_modules/grpc-tools/bin/protoc.js
node_modules/grpc-tools/bin/google
node_modules/grpc-tools/bin/google/protobuf
node_modules/grpc-tools/bin/google/protobuf/timestamp.proto
node_modules/grpc-tools/bin/google/protobuf/field_mask.proto
node_modules/grpc-tools/bin/google/protobuf/api.proto
node_modules/grpc-tools/bin/google/protobuf/duration.proto
node_modules/grpc-tools/bin/google/protobuf/struct.proto
node_modules/grpc-tools/bin/google/protobuf/wrappers.proto
node_modules/grpc-tools/bin/google/protobuf/source_context.proto
node_modules/grpc-tools/bin/google/protobuf/any.proto
node_modules/grpc-tools/bin/google/protobuf/type.proto
node_modules/grpc-tools/bin/google/protobuf/empty.proto
node_modules/grpc-tools/bin/google/protobuf/compiler
node_modules/grpc-tools/bin/google/protobuf/compiler/plugin.proto
node_modules/grpc-tools/bin/google/protobuf/descriptor.proto
node_modules/grpc-tools/bin/GNUSparseFile.0
node_modules/grpc-tools/bin/GNUSparseFile.0/grpc_node_plugin
node_modules/grpc-tools/bin/GNUSparseFile.0/protoc
node_modules/grpc-tools/bin/protoc_plugin.js

1.11.3:

> find node_modules/grpc-tools/bin
node_modules/grpc-tools/bin
node_modules/grpc-tools/bin/grpc_node_plugin
node_modules/grpc-tools/bin/protoc.js
node_modules/grpc-tools/bin/google
node_modules/grpc-tools/bin/google/protobuf
node_modules/grpc-tools/bin/google/protobuf/timestamp.proto
node_modules/grpc-tools/bin/google/protobuf/field_mask.proto
node_modules/grpc-tools/bin/google/protobuf/api.proto
node_modules/grpc-tools/bin/google/protobuf/duration.proto
node_modules/grpc-tools/bin/google/protobuf/struct.proto
node_modules/grpc-tools/bin/google/protobuf/wrappers.proto
node_modules/grpc-tools/bin/google/protobuf/source_context.proto
node_modules/grpc-tools/bin/google/protobuf/any.proto
node_modules/grpc-tools/bin/google/protobuf/type.proto
node_modules/grpc-tools/bin/google/protobuf/empty.proto
node_modules/grpc-tools/bin/google/protobuf/compiler
node_modules/grpc-tools/bin/google/protobuf/compiler/plugin.proto
node_modules/grpc-tools/bin/google/protobuf/descriptor.proto
node_modules/grpc-tools/bin/protoc
node_modules/grpc-tools/bin/protoc_plugin.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants