★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/27142Nouvelle recherche | Portail wanayoo
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

src: always use diagnostic file sequence number #27142

Merged
merged 1 commit into from Apr 11, 2019

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
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 8, 2019

Copy link
Member

@richardlau richardlau left a comment

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 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

LGTM

jasnell
jasnell approved these changes Apr 9, 2019
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 9, 2019

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented 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 <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@cjihrig cjihrig merged commit 547576f into nodejs:master Apr 11, 2019
1 of 2 checks passed
@cjihrig cjihrig deleted the diag-file-seq branch Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants