sail
sail copied to clipboard
Separate projects by host
Instead of storing projects at ~/Projects/cdr/code-server
, we should also separate them by host like ~/Projects/github.com/cdr/code-server
so multiple projects don't overlap
The current format is much easier to use... Do you think that conflicts will be common enough to warrant this?
@ammario if you use github.com and internal git hosting, and there may be conflicts with same namespace and repo name. Another consideration is separation, and I don't want internal kubernetes applications under github.com kubernetes namespace, and it's confused.
@linux-china To be fair, it's currently possible to use multiple hosts since sail run
will accept a host
sail run my.private-git.com/user/repo
The only time we will run into issues is if two git hosts share the same user/repo name
We want the Sail project folder to be structured as closely as a dev would normally structure their projects folder. I don't know any devs (except Go devs, by force) which have the git host in their project path.
A possible solution is changing project_path
to be a mapping of regex to project directories. Then, one could easily redirect all projects related to a particular Git host or organization to a folder.
I generally include github.com
, gitlab.com
in the project's path.