bosco icon indicating copy to clipboard operation
bosco copied to clipboard

bosco setup fails when not using current directory

Open geophree opened this issue 8 years ago • 2 comments

The bosco setup command correctly links a directory to a team, but if you specify a directory you're not in, the subsequent clone command it tries to run fails.

geophree@soylentil:~/src$ bosco setup
[11:33:12] Bosco: Initialised using [/home/geophree/.config/bosco/bosco.json] in environment [local] with team [no-team]
[11:33:13] Bosco: Added tes/core team ...
[11:33:13] Bosco: Added tes/resourcespayments team ...
[11:33:13] Bosco: Synchronisation with Github complete, added 2 teams.
? Select a team to map to a workspace directory: tes/resourcespayments
? Enter the path to map team to (defaults to current folder): resourcespayments
[11:33:40] Bosco: Team tes/resourcespayments path updated to: /home/geophree/src/resourcespayments
[11:33:40] Bosco: Looks like you havent linked this workspace to a team?  Try: bosco team setup. If you can't see your team in the list, Try: bosco team sync

geophree avatar Jan 27 '16 19:01 geophree

It's because you're not in the folder, and it can't change you into it. I guess all we can do is stop there and instruct them to cd into the folder.

cliftonc avatar Jan 27 '16 19:01 cliftonc

Well, it could probably move itself into the folder and run everything as normal. Then when it was done, you'd still be outside the folder, but everything would still be set up correctly.

geophree avatar Jan 27 '16 20:01 geophree