ThreeDotsLabs / cli

11 stars 0 forks source link

tdl training init <path> fails to initalize. #16

Open SandeepGamot opened 7 months ago

SandeepGamot commented 7 months ago

after following the onboarding setup from three dots lab.

  1. installed golang extension on vscode
  2. ran the curl install.sh to install tdl cli
  3. ran the tdl configure step with the token
  4. running tdl training init .

shows the following prompt

This command will clone training source code to /Users/username/Desktop/path/to/training directory.
Press ENTER to continue or q to quit 

when Enter is pressed it fails with the following error

••• . ➜ go work init
rpc error: code = Internal desc = Internal error

after this failure though it has a go.work file with go 1.21.2 as it's content.

What could be done to fix this?

obiwor commented 7 months ago

Same issue, I solved this pb by simply use the standard command tdl training init one-evening-gogiven on the website Before clonning the cli will show you the final path which will be your current directory.

Finally, this command is confusing, you should read this command as "download your progression of the threedotslab course you choose, in the directory where you run this command" and not as the init as in git init

Maybe this line should be more explicit ^^ https://github.com/ThreeDotsLabs/cli/blob/master/tdl/main.go#L129