Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to node 20 and re-upgrade got to 14.0.0
We have to revert uber-go#75 because got 14.0.0 requires node 20. This diff updates to node 20 for the docs github workflow. It also re-upgrade got to 14.0.0. Initially, this causes another issue when building the docs: ``` tip Apply plugin mermaidjs (i.e. "vuepress-plugin-mermaidjs") ... [info] [webpackbar] Compiling Client [info] [webpackbar] Compiling Server /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:114 throw e; ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:68:19) at Object.createHash (node:crypto:138:10) at module.exports (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:471:10) at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:503:5 at /home/runner/work/cff/cff/docs/node_modules/webpack/lib/NormalModule.js:358:12 at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:221:10) at /home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:236:3 at context.callback (/home/runner/work/cff/cff/docs/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /home/runner/work/cff/cff/docs/node_modules/cache-loader/dist/index.js:134:7 at /home/runner/work/cff/cff/docs/node_modules/graceful-fs/graceful-fs.js:61:14 at FSReqCallback.oncomplete (node:fs:189:23) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } ``` This is apparently a known issue with Node >16. Refs: * https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported * vuejs/vuepress#3136 We can workaround this issue by setting `NODE_OPTIONS=--openssl-legacy-provider` when building the docs, which this PR also does. I tested the docs workflow using this branch and the env var set, and it completed successfully: https://github.com/uber-go/cff/actions/runs/7172095319
- Loading branch information