-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
lib: ensure --check flag works with --require #19600
Conversation
I'd prefer to be careful and tag this (This should probably also be documented?) |
This covers the
Cool. Ya, the current docs for flags like Would docs be done in this PR or a follow-up? |
Ping @addaleax. |
I don’t think you should have to expand the documentation with what you think should be in there in this PR, but this particular change should probably be documented as a change under both options by adding a |
Sounds good. I'll update the PR today! Update: Added change note. |
test/parallel/test-cli-syntax.js
Outdated
['-c', '--check'].forEach(function(checkFlag) { | ||
['-r', '--require'].forEach(function(requireFlag) { | ||
const preloadFile = fixtures.path('no-wrapper.js'); | ||
const file = fixtures.path('syntax/illegal_if_not_wrapped.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixtures.path('syntax', 'illegal_if_not_wrapped.js')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardlau Updated. You might do a follow-up PR to tweak the rest of the file's usage if that is important to you.
@richardlau Do |
Ping @richardlau. |
Can someone please rerun the CI check run or confirm that the fails are not related. |
Assuming it lands by next Tuesday (which it should). |
Cool. Do you think these fails are real. I'm wondering if there's anything actionable for me to do on my side of things or if it's just a matter of hitting re-test until the other flaky tests pass. |
The failures are unrelated, this should be able to land. |
PR-URL: #19600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Landed in 0876a03 |
--eval
,--print
, and--check
-with-piped-input work with--require
.However,
--check
with a file path does not. This PR fixes #18425.Checklist