Commit 42f5ff8
build: add crypto check to markdown lint target
Currently, if configured --without-ssl the following error will be
repored by remark-cli:
Running Markdown linter on misc docs...
internal/util.js:100
throw new ERR_NO_CRYPTO();
^
Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
at assertCrypto (internal/util.js:100:11)
at crypto.js:31:1
at NativeModule.compile (internal/bootstrap/loaders.js:235:7)
at Function.NativeModule.require
(internal/bootstrap/loaders.js:155:18)
at Function.Module._load (internal/modules/cjs/loader.js:530:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous>
(/node/tools/remark-cli/node_modules/math-random/node.js:1:76)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js
(internal/modules/cjs/loader.js:713:10)
make[1]: *** [tools/.miscmdlintstamp] Error 1
make: *** [lint] Error 2
This commit adds a check for crypto to avoid this error when node has
been configured without crypto support. The alternative was to try to
fix this in randomatic but that lead to another dependency failing
(uuid) and felt like this might be simpler.
PR-URL: #21326
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 361e4f2 commit 42f5ff8Copy full SHA for 42f5ff8
File tree
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1046 | 1046 | |
1047 | 1047 | |
1048 | 1048 | |
| 1049 | + |
| 1050 | + |
1049 | 1051 | |
1050 | 1052 | |
| 1053 | + |
1051 | 1054 | |
1052 | 1055 | |
1053 | 1056 | |
| 1057 | + |
| 1058 | + |
| 1059 | + |
1054 | 1060 | |
1055 | 1061 | |
1056 | 1062 | |
| ||
1059 | 1065 | |
1060 | 1066 | |
1061 | 1067 | |
| 1068 | + |
1062 | 1069 | |
1063 | 1070 | |
1064 | 1071 | |
| 1072 | + |
| 1073 | + |
| 1074 | + |
1065 | 1075 | |
1066 | 1076 | |
1067 | 1077 | |
|
0 commit comments