Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default branch to "main" #4866

Open
2 of 3 tasks
WilliamRoyNelson opened this issue Jul 9, 2024 · 3 comments
Open
2 of 3 tasks

Rename default branch to "main" #4866

WilliamRoyNelson opened this issue Jul 9, 2024 · 3 comments
Assignees
Labels
no decision No decision to fix or not proposal

Comments

@WilliamRoyNelson
Copy link

Welcome

Your feature request related to a problem? Please describe

The name "main" is increasingly becoming the standard for default branch names, and it's in alignment with this project's Code of Conduct which requires the use of inclusive language.

The reason that this is important, as trivial as it may seem, is that in some corporate environments it can cause documentation or code to be flagged if it contains certain terms like "master" or "abort."

As a bonus, it saves two keystrokes! That's a 50% increase in efficiency if you look at it from a very contrived angle!

Describe the solution you'd like

GitHub has a guide on how to easily make this change:
https://github.com/github/renaming

Describe alternatives you've considered

In documentation instead of using a link like:
https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml

I can instead use
https://github.com/golangci/golangci-lint/blob/HEAD/.golangci.reference.yml

Additional context

No response

Supporter

@WilliamRoyNelson WilliamRoyNelson added the enhancement New feature or improvement label Jul 9, 2024
Copy link

boring-cyborg bot commented Jul 9, 2024

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez self-assigned this Jul 9, 2024
@WilliamRoyNelson
Copy link
Author

To be clear, if there are compelling technical reasons to not make this change, don't feel like you need to break things.
I'm mostly hoping that the only obstacle is "nobody ever asked and nobody thought to do it" which is an easy obstacle to overcome 😄

@ldez ldez added no decision No decision to fix or not proposal and removed enhancement New feature or improvement labels Jul 9, 2024
@ldez
Copy link
Member

ldez commented Jul 9, 2024

some corporate environments

I feel like corporates don't really care about golangci-lint maintainers: https://opencollective.com/golangci-lint#category-BUDGET


I use "main" for all my new projects, but the impacts are important for existing projects.
In the context of golangci-lint, there are multiple internal and external references that I don't want to break.
This doesn't mean we will never change, but this requires a lot of work and time.

@ldez ldez changed the title Proposal: Please rename default branch to "main" Rename default branch to "main" Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no decision No decision to fix or not proposal
Projects
None yet
Development

No branches or pull requests

2 participants