Automate installation for linux in `sg setup`.
Created by: jhchabran
Fixes https://github.com/sourcegraph/sourcegraph/issues/28314
Other changes:
- Ubuntu has a check to avoid sourcing the configuration unless the shell is ran interactively. This is fixed by running
$SHELL -i -c ...;exit $?
instead.
TODO:
-
Check if the changes to how to freshShellExec
works on Macs. -
Check on an amd64
VM how if it works. -
Write a test runner to test the linux version in CI- Doing it in a different PR
-
Make a pass in the docs to check if there are references to the old linux runner.
I tested this on an Ubuntu VM running on amd64, I was able to run sg start oss
but the load was so high on the VM that I had to kill it. All the checks were green though.