-
Notifications
You must be signed in to change notification settings - Fork 30k
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
tools/doc: add files to gitignore #17224
Conversation
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.
This should be 'tools/doc'
Sorry for confusion
8791f57
to
82bb669
Compare
No problem at all. Changed the commit, commit message, and PR title. That work? |
@RichardLitt it seems like I may have not properly identified the issue it seems that there is already a tools/doc/node_modules (I had thought I checked before opening the issue but was mistaken) The issue appears to be extra files getting added during attached is an image of this, best I could do as this happened on other systems I'm not sure that this approach with the git ignore is the correct solution, sorry about that. That being said we should use this PR to find the correct solution 😄 I'll update when I can dig in a bit more. Perhaps you can get this to repro on your machine |
About the node_modules: I think we should ignore the As for the package-lock.json...I think we should actually commit that into the source? Also cc @refack |
.gitignore
Outdated
@@ -103,6 +103,8 @@ deps/npm/node_modules/.bin/ | |||
/SHASUMS*.txt* | |||
|
|||
# test artifacts | |||
tools/doc/node_modules |
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.
So I think this should be
tools/doc/node_modules/*
!tools/doc/node_modules/.bin/marked
!tools/doc/node_modules/js-yaml/index.js
!tools/doc/node_modules/marked
And commit the package-lock.json into the source instead of ignoring it.
82bb669
to
de11311
Compare
I edited the commit to include @joyeecheung's suggestions. I also committed the package-lock.json file. Should be good? |
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.
I'll take a look, but IMHO if everything is published to |
@RichardLitt I pushed a suggested change to this PR. Feel free to remove it. |
Can't think of a reason to remove it, @refack. No need for every commit in this PR to come from me. |
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.
LGTM
@Bamieh did you test with this patch? It should take care of this (actually unneeded) file modification. |
@refack yes i did run the tests and everything is in order
|
Tbh, I don't think we should be running |
@addaleax while I agree, I don't think we yet have consensus on removing npm install, and in the mean time this is creating friction with the test suite |
I'm thinking of landing this tomorrow morning, then start working on a new PR for further improvements. |
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.
LGTM
PR-URL: nodejs#17224 Fixes: nodejs#17216 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
5d69e4d
to
887e232
Compare
\o/ thanks! Super cool. Thank you Myles for the tweet.
On Fri, Nov 24, 2017 at 10:29 AM Refael Ackermann ***@***.***> wrote:
Merged #17224 <#17224>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17224 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AA3loYIHTXmzcvi4qAZDIQMEfOadubcpks5s5uBhgaJpZM4QnCpa>
.
--
Richard | @richlitt <https://twitter.com/richlitt> | burntfen.com
<http://www.burntfen.com>
|
"js-yaml": "^3.5.2" | ||
}, | ||
"devDependencies": {}, |
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.
Why this change? js-yaml
is a full dependency of the doctool
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.
At some point it you hooked js-yaml
to redirect to the copy that is in ESLint
.
node/tools/doc/node_modules/js-yaml/index.js
Lines 1 to 15 in bb44626
'use strict'; | |
// Hack to load the js-yaml module from eslint. | |
// No other reason than that it’s huge. | |
const path = require('path'); | |
const realJSYaml = path.resolve( | |
__dirname, '..', '..', '..', // tools/ | |
'eslint', | |
'node_modules', | |
'js-yaml' | |
); | |
module.exports = require(realJSYaml); |
This was overwritten anytime
npm i
was run.(I agree we should also stop running
npm i
as part of the regular flows, since tools/doc
should work as is in git)
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.
Yes, not running npm i
is the fix here. It’s too bad the plans for releasing the doctool as a standalone module didn’t get anywhere so far, but semantically this is backwards :(
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.
I agree. I'll roll this back as soon as I finish testing the install-les make target.
PR-URL: #17224 Fixes: #17216 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #17224 Fixes: #17216 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #17224 Fixes: #17216 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Had to pull this into v8.9.4 as the lack of it was breaking the macOS doc-upload build job. |
This closes #17216 by adding some files to the gitignore which stick around after an aborted build. It is meant as a temporary fix.
Checklist
Affected core subsystem(s)
.gitignore, but related to docs.