tools/doc: add files to gitignore#17224
Conversation
MylesBorins
left a comment
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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? |
|
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. |
|
@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. |
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>
|
| "devDependencies": { | ||
| "js-yaml": "^3.5.2" | ||
| }, | ||
| "devDependencies": {}, |
There was a problem hiding this comment.
Why this change? js-yaml is a full dependency of the doctool
There was a problem hiding this comment.
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
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.
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.
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.