lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

Rename `master` to `main`

Open Soroosh129 opened this issue 3 years ago • 7 comments

Verbatim from GitHub documentation:

Many communities, both on GitHub and in the wider Git community, are considering renaming the default branch name of their repository from master. GitHub is gradually renaming the default branch of our own repositories from master to main. We're committed to making the renaming process as seamless as possible for project maintainers and all of their contributors. This repository is our up-to-date guidance on how and when to rename your default branch.

This change could potentially break existing setups but it is increasingly becoming the default in Git repositories.

Soroosh129 avatar Jul 23 '21 04:07 Soroosh129

Yes, I agree we should do this at some point. Let's do it some time in the second half of August?

lhstrh avatar Jul 24 '21 00:07 lhstrh

I think I am missing something here. Why the change?

cmnrd avatar Jul 26 '21 08:07 cmnrd

It's part of an effort to move away from terms like master/slave, black list/white list, etc. Here's an NYT article: https://www.nytimes.com/2021/04/13/technology/racist-computer-engineering-terms-ietf.html

lhstrh avatar Jul 26 '21 08:07 lhstrh

Ok, makes sense. I think this could be done together with moving the repository to the lf-lang organization. Then we only need to change our setup once.

cmnrd avatar Jul 26 '21 10:07 cmnrd

We had too many breaking changes, we might as well tackle this one! Perhaps a good strategy is to establish a 'main' branch and let it mirror master for a while. Then we can switch all CI workflows (in other repos) from master to main and eventually make master read only and set 'main' as the main branch. Do we have someone who could be interested in working on this? @petervdonovan perhaps?

cmnrd avatar May 31 '23 09:05 cmnrd

I'm not sure how easy it will be to have another branch mirror master. Why not just do this all at once? Start a new branch called main that is based on master, update all the satellite repositories to track main, delete master, and then deal with anything else that breaks thereafter?

petervdonovan avatar May 31 '23 20:05 petervdonovan

We don't have to delete master, we just have to make it not the default branch and make it read-only. That said, deleting it does make it apparent in which places stale references to master are lingering. I'm fine with the approach @petervdonovan outlines..

lhstrh avatar May 31 '23 21:05 lhstrh