Include `git` in images
Opened this issue · 0 comments
alexgleason commented
I am hitting an error building Vitepress with Deno in my CI, based on denoland/deno:1.45.5
. The problem is that git
is not available:
$ deno task build
Task build vitepress build
vitepress v1.1.0
- building client + server bundles...
x Build failed in 98ms
✖ building client + server bundles...
error: Uncaught Error: spawnSync git ENOENT
at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
at __node_internal_errnoException (ext:deno_node/internal/errors.ts:141:10)
at _createSpawnSyncError (ext:deno_node/internal/child_process.ts:627:17)
at new ChildProcess (ext:deno_node/internal/child_process.ts:219:13)
at Object.spawn (node:child_process:119:10)
at spawn (file:///builds/soapbox-pub/nostrify-docs/node_modules/.deno/vitepress@1.1.0/node_modules/vitepress/dist/node/serve-Csn-CKFx.js:38098:24)
at file:///builds/soapbox-pub/nostrify-docs/node_modules/.deno/vitepress@1.1.0/node_modules/vitepress/dist/node/serve-Csn-CKFx.js:38137:19
at new Promise (<anonymous>)
at getGitTimestamp (file:///builds/soapbox-pub/nostrify-docs/node_modules/.deno/vitepress@1.1.0/node_modules/vitepress/dist/node/serve-Csn-CKFx.js:38132:10)
at file:///builds/soapbox-pub/nostrify-docs/node_modules/.deno/vitepress@1.1.0/node_modules/vitepress/dist/node/serve-Csn-CKFx.js:38[297](https://gitlab.com/soapbox-pub/nostrify-docs/-/jobs/7519551787#L297):36
git is a common dependency for npm packages. I think it would be good for Deno 2 to include it, to improve compatibility.