Skip to content

Make 'sg setup' interactive on macOS

Warren Gifford requested to merge sg/hacking-hour-05-nov into main

Created by: mrnugget

This changes the sg setup command to a new, interactive model. For now only on macOS. The next step would be to add Linux support, which should be less work, since the "UI" and the user flow is already there.

I think this is ready to be merged. There are still TODOs in the code and obviously things can always be improved, but I think it's much better than the current sg setup we have. Especially because it makes it much clearer what has to happen inside the sourcegraph repository and what doesn't.

I did a complete walkthrough of a setup on a fresh macOS instance and all the steps worked. The only thing that failed was downloading the symbols container. But I'm investigating.

As for the TODOs: I'm going to keep chipping away at them. Please feel free to also pick up some of them. The stuff I want to tackle after this PR:

  • Make the "only for employees" clear in the UI
  • Linux support
  • Better readability of instructions

Preview

https://user-images.githubusercontent.com/1185253/143875845-a7fc7f73-4ce4-482f-b5ed-47e0a5a53c09.mp4

Merge request reports

Loading