UpstreetAI / upstreet-core

Build and deploy AI Agents, fast.
https://upstreet.ai
6 stars 3 forks source link

Some machines may not have git installed #552

Open SaadBazaz opened 1 week ago

SaadBazaz commented 1 week ago

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.

avaer commented 1 week ago

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

SaadBazaz commented 3 days ago

This was resolved in #573