Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include git in images #386

Open
alexgleason opened this issue Aug 6, 2024 · 0 comments
Open

Include git in images #386

alexgleason opened this issue Aug 6, 2024 · 0 comments

Comments

@alexgleason
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant