Page MenuHomePhabricator

[nix] Add protoc-gen-grpc-web for gRPC web codegen
ClosedPublic

Authored by ashoat on Mar 31 2023, 8:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 7:37 AM
Unknown Object (File)
Wed, Apr 17, 7:45 PM
Unknown Object (File)
Wed, Apr 17, 7:45 PM
Unknown Object (File)
Wed, Apr 17, 7:45 PM
Unknown Object (File)
Wed, Apr 17, 7:42 PM
Unknown Object (File)
Mar 8 2024, 1:39 AM
Unknown Object (File)
Mar 8 2024, 1:39 AM
Unknown Object (File)
Mar 8 2024, 1:39 AM
Subscribers

Details

Reviewers
jon
varun
atul
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM41c2e1eee673: [nix] Add protoc-gen-grpc-web for gRPC web codegen
Summary

We need this to codegen JS files from .proto files. Nix has version 1.3.1, which is close to the latest on GitHub releases (1.4.2), which is where the official docs (first link) point you to.

Test Plan

After making this change I exited and reentered my Nix environment and confirmed that the tool was installed based on the output of nix develop.

I then ran this command which I got from the "Basics tutorial" I found in the gRPC web docs:

protoc -I=shared/protos/ identity_client.proto --js_out=import_style=commonjs:.

It generated a identity_client_pb.js file that looked right.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable