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

apollo-reporting-protobuf: check in generated code, regenerate manually #5328

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

glasser
Copy link
Member

@glasser glasser commented Jun 16, 2021

Today, the marked project pushed a minor release that broke Node 12
compatibility: markedjs/marked#2106

marked is a dep of jsdoc which is a dep of the protobufjs CLI.
Unfortunately it turns out that the protobufjs CLI installs dependencies
including jsdoc at runtime, unversioned. Yikes! See setup
https://github.com/apollographql/protobuf.js/blob/master/cli/util.js

I tried changing our fork to not do this and move the deps to be dev
deps of this project (see @apollo/[email protected]) but that didn't
work out on the first try. So instead, let's just not require the
protobufjs CLI to work on Node 12, and also start saving time by not
constantly regenerating the code in this package. Now code is only
generated manually (lerna run generate) and checked in, and it can be
done on the latest Node.

Today, the `marked` project pushed a minor release that broke Node 12
compatibility: markedjs/marked#2106

`marked` is a dep of `jsdoc` which is a dep of the protobufjs CLI.
Unfortunately it turns out that the protobufjs CLI installs dependencies
including `jsdoc` *at runtime*, *unversioned*. Yikes! See `setup`
https://github.com/apollographql/protobuf.js/blob/master/cli/util.js

I tried changing our fork to not do this and move the deps to be dev
deps of this project (see `@apollo/[email protected]`) but that didn't
work out on the first try. So instead, let's just not require the
protobufjs CLI to work on Node 12, and also start saving time by not
constantly regenerating the code in this package. Now code is only
generated manually (`lerna run generate`) and checked in, and it can be
done on the latest Node.
@glasser glasser enabled auto-merge (squash) June 16, 2021 04:36
@glasser glasser merged commit 72295c2 into release-3.0 Jun 16, 2021
@glasser glasser deleted the glasser/protobuf-check-in-generated branch June 16, 2021 04:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
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.

1 participant