sail icon indicating copy to clipboard operation
sail copied to clipboard

Separate projects by host

Open coadler opened this issue 5 years ago • 5 comments

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

coadler avatar May 03 '19 20:05 coadler

The current format is much easier to use... Do you think that conflicts will be common enough to warrant this?

ammario avatar May 19 '19 04:05 ammario

@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 avatar May 22 '19 03:05 linux-china

@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

coadler avatar May 22 '19 15:05 coadler

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.

ammario avatar May 22 '19 15:05 ammario

I generally include github.com, gitlab.com in the project's path.

teddy-codes avatar May 23 '19 18:05 teddy-codes