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

Add tooling script to cache key #612

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

timostamm
Copy link
Member

In packages/upstream-protobuf, we're fetching protoc and other dependencies, and cache them based on the version. Since the logic of the script can affect the outcome, this is brittle. This PR adds the script itself to the cache key.

In packages/upstream-protobuf, we're fetching `protoc` and other dependencies, and cache them based on the version. Since the logic of the script can affect the outcome, this is brittle. This PR adds the script itself to the cache key.
@@ -43,7 +43,6 @@ async function main(args) {
exitUsage();
}
stdout.write(protoInclude.files.join(" "));
exit(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated. It's possible that Node.js exits before it has flushed what we wrote to stdout in the line above. Removing this line let's Node.js exit on its own.

@timostamm timostamm merged commit c831309 into main Nov 16, 2023
3 checks passed
@timostamm timostamm deleted the tstamm/include-tooling-logic-in-cache-key branch November 16, 2023 13:14
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.

2 participants