You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They're not meant to be. I don't know the reason why but we strip out things before creating the source tarball (size? It was like this before I started on the project.):
Oh, OK. Thank you, @richardlau. Well, I don't think you should strip out tools/node_modules because when running make doc I got this error: Cannot find module 'tools/doc/../node_modules/eslint/node_modules/js-yaml' required by tools/doc/common.js.
I think the nature of the problem is that (as far as I know) there are no published and signed SHASUMs for the distribution (like https://github.com/nodejs/node/archive/...) that contains all files required for make -s test-doc to work (which is triggered by make test, I'm coming here from #34005):
sha256sum: WARNING: 1 of 1 computed checksums did NOT match
It seems that I can be sure I have non-tampered source code, or run tests, but not both? Should I be doing something other than make test after compilation?
edit: Looks like the command to run is make test-only (instead of make test). Although, that results in 2 failures in my setup for v14.4.0. I'll make a separate issue.
Activity
richardlau commentedon Jun 5, 2020
They're not meant to be. I don't know the reason why but we strip out things before creating the source tarball (size? It was like this before I started on the project.):
node/Makefile
Lines 1038 to 1074 in 2362378
The https://github.com/nodejs/node/archive/... files are automatically created by GitHub and are snapshots of the repository at the tagged release.
ma11hew28 commentedon Jun 5, 2020
Oh, OK. Thank you, @richardlau. Well, I don't think you should strip out
tools/node_modulesbecause when runningmake docI got this error:Cannot find module 'tools/doc/../node_modules/eslint/node_modules/js-yaml'required bytools/doc/common.js.bnoordhuis commentedon Jun 11, 2020
Size is indeed the reason. Including
tools/node_modulesbloats the tarball by about 2 MB.I'm unsure what to do here. It's unfortunate that
make docdoesn't work. On the other hand, 99% of downloaders won't care.Perhaps we could add a separate documentation tarball, akin to the headers-only download? Or simply bite the bullet and include
tools/node_modules?ma11hew28 commentedon Jun 11, 2020
OK, @bnoordhuis. Thank you. Whatever works. Note: After downloading the source code from https://github.com/nodejs/node/releases, I was able to
make doc.tristanls commentedon Jun 21, 2020
I think the nature of the problem is that (as far as I know) there are no published and signed SHASUMs for the distribution (like https://github.com/nodejs/node/archive/...) that contains all files required for
make -s test-docto work (which is triggered bymake test, I'm coming here from #34005):It seems that I can be sure I have non-tampered source code, or run tests, but not both? Should I be doing something other thanmake testafter compilation?edit: Looks like the command to run is
make test-only(instead ofmake test). Although, that results in 2 failures in my setup forv14.4.0. I'll make a separate issue.