Skip to content

Conversation

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Apr 8, 2019

This commit attaches a sequence number to all filenames that are automatically generated by DiagnosticFilename. This prevents accidental overwriting of existing files.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. report Issues and PRs related to process.report. labels Apr 8, 2019
Copy link
Member

@richardlau richardlau left a comment

Choose a reason for hiding this comment

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

This makes the sequence number shared across all uses of MakeFilename(), including those that use different prefix's and/or ext's. I'm okay with it (although it feels a bit odd) but I'll point it out in case others feel differently.

@cjihrig
Copy link
Contributor Author

cjihrig commented Apr 8, 2019

This makes the sequence number shared across all uses of MakeFilename(), including those that use different prefix's and/or ext's.

Yes, I was aware of that as well. I don't think we need to overcomplicate this. If someone wants a custom filename, they can pass in a custom filename. Thanks for pointing it out though.

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Apr 9, 2019

CI: https://ci.nodejs.org/job/node-test-pull-request/22301/

EDIT(cjihrig): CI was green.

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 9, 2019
This commit attaches a sequence number to all filenames that
are automatically generated by DiagnosticFilename. This prevents
accidental overwriting of existing files.

PR-URL: nodejs#27142
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. report Issues and PRs related to process.report.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants