Git error from opengb dev in WSL

from @Boreal <3: Whenever I run opengb dev or , opengb module add friends like the guide says, I get an error about git.
boreal@DESKTOP-L92UU30:/mnt/c/Users/boreal/Projects/opengb$ opengb dev

[UNCAUGHT] NotFound: Failed to spawn 'git': No such file or directory (os error 2)
at spawnChildInner (ext:runtime/40_process.js:185:17)
at spawn (ext:runtime/40_process.js:382:10)
at Command.output (ext:runtime/40_process.js:455:12)
at resolveRegistryGit (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:125:7)
at eventLoopTick (ext:core/01_core.js:168:7)
at async loadRegistry (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:37:12)
at async loadDefaultRegistry (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:52:9)
at async loadProject (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/project.ts:47:27)
at async initProject (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/cli/common.ts:8:18)
at async Command.actionHandler (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/cli/commands/dev.ts:18:20)
boreal@DESKTOP-L92UU30:/mnt/c/Users/boreal/Projects/opengb$ opengb dev

[UNCAUGHT] NotFound: Failed to spawn 'git': No such file or directory (os error 2)
at spawnChildInner (ext:runtime/40_process.js:185:17)
at spawn (ext:runtime/40_process.js:382:10)
at Command.output (ext:runtime/40_process.js:455:12)
at resolveRegistryGit (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:125:7)
at eventLoopTick (ext:core/01_core.js:168:7)
at async loadRegistry (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:37:12)
at async loadDefaultRegistry (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/registry.ts:52:9)
at async loadProject (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/project/project.ts:47:27)
at async initProject (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/cli/common.ts:8:18)
at async Command.actionHandler (https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.1/src/cli/commands/dev.ts:18:20)

Has anyone encountered this error before? For context, I am using WSL Ubuntu and I installed opengb through deno (snap)
11 Replies
Nathan
Nathan2y ago
@Boreal <3 what wsl distro were you using? it works on debian wsl for me.
Boreal <3
Boreal <32y ago
Ubuntu
Nathan
Nathan2y ago
i'll give that a shot just got this working on a fresh ubuntu distro, that's so weird can you run which git in the ubuntu wsl?
Boreal <3
Boreal <32y ago
its just /usr/bin/git as expected
Nathan
Nathan2y ago
@Boreal <3 did you install deno in your wsl environment when trying this with wsl?
Boreal <3
Boreal <32y ago
i used snap
Nathan
Nathan2y ago
roger
Boreal <3
Boreal <32y ago
ill try with sudo curl -fsSL https://deno.land/install.sh | sh
Nathan
Nathan2y ago
thx. not sure that'll change anything, but worth a shot. actually, snap has some sandboxing stuff. maybe it will.
Boreal <3
Boreal <32y ago
i think snap might have been the issue is it supposed to say anything after this
boreal@DESKTOP-L92UU30:/mnt/c/Users/boreal/projects/opengb-rpcn$ opengb dev

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Generate runtime/
Generate prisma_output/ (users)
Generate prisma_output/ (rate_limit)
Generate prisma_output/ (tokens)
boreal@DESKTOP-L92UU30:/mnt/c/Users/boreal/projects/opengb-rpcn$ opengb dev

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Generate runtime/
Generate prisma_output/ (users)
Generate prisma_output/ (rate_limit)
Generate prisma_output/ (tokens)
Nathan
Nathan2y ago
it'll hang for a second here, it should resume. i need to look in to why it's been taking so long recently that's a one time thing, though

Did you find this page helpful?