usdk icon indicating copy to clipboard operation
usdk copied to clipboard

Some machines may not have git installed

Open SaadBazaz opened this issue 1 year ago • 2 comments

Some machines may not have the git CLI tool installed, at which point when our usdk create command tries to init a git repo, it may crash.

A quick fix is wrapping it in a try-catch, and shoot a warning to the user that We could not initialize a git repository for your agent, as git was not found.

SaadBazaz avatar Nov 14 '24 15:11 SaadBazaz

A quick fix is wrapping it in a try-catch, and shoot a warning to the user that We could not initialize a git repository for your agent, as git was not found.

This should already be the case. If it's not, that's a bug.

https://github.com/UpstreetAI/monorepo/blob/7b0990f55b4cc364fbbeefb05a342f502a1e3563/packages/usdk/lib/git-util.mjs#L5

avaer avatar Nov 16 '24 10:11 avaer

This was resolved in #573

SaadBazaz avatar Nov 21 '24 16:11 SaadBazaz