Skip to content

Install @protobuf-ts/plugin in the build containers#37010

Closed
ryanclark wants to merge 2 commits intomasterfrom
ryan/add-ts-protobufs-to-dockerfiles
Closed

Install @protobuf-ts/plugin in the build containers#37010
ryanclark wants to merge 2 commits intomasterfrom
ryan/add-ts-protobufs-to-dockerfiles

Conversation

@ryanclark
Copy link
Copy Markdown
Member

@ryanclark ryanclark commented Jan 22, 2024

This installs @protobuf-ts/plugin alongside the existing JS protobuf generation libraries so we can use it in #37009

It also changes buf to use npm exec to use protoc-gen-ts installed by grpc_tools_node_protoc_ts, as it tries to pick up the @protobuf-ts/plugin/bin/protoc-gen-ts otherwise

@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@ryanclark ryanclark added the no-changelog Indicates that a PR does not require a changelog entry label Jan 22, 2024
Comment thread build.assets/Dockerfile
ARG NODE_PROTOC_TS_VERSION # eg, "5.0.1"
RUN npm install --global "grpc-tools@$NODE_GRPC_TOOLS_VERSION" "grpc_tools_node_protoc_ts@$NODE_PROTOC_TS_VERSION"
ARG PROTOBUF_TS_PLUGIN_VERSION # eg, "2.9.3"
RUN npm install --global "grpc-tools@$NODE_GRPC_TOOLS_VERSION" "grpc_tools_node_protoc_ts@$NODE_PROTOC_TS_VERSION" "@protobuf-ts/plugin@$PROTOBUF_TS_PLUGIN_VERSION"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this needed in the Ci container? We're not using it to generate proto files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, the usage is in a follow up PR

@ryanclark ryanclark added this pull request to the merge queue Jan 25, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 25, 2024
@ravicious
Copy link
Copy Markdown
Member

I think we can close this once since we have merged #54033 and we also have the issue #54029 to improve the situation.

@ryanclark ryanclark closed this May 6, 2025
@ryanclark ryanclark deleted the ryan/add-ts-protobufs-to-dockerfiles branch May 6, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants