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

Suggested primary branch name #447

Open
sgoggins opened this issue Apr 12, 2024 · 3 comments
Open

Suggested primary branch name #447

sgoggins opened this issue Apr 12, 2024 · 3 comments

Comments

@sgoggins
Copy link
Contributor

sgoggins commented Apr 12, 2024

Most of the projects I use on Github have shifted the primary branch name to main. To stay current with this practice, we might consider following suit.

@boyter
Copy link
Owner

boyter commented Apr 16, 2024

Yeah its a result of the name being set before the massive political push to change the names. I never bothered mostly due to being lazy.

I don't think its that hard to do from memory although I am unsure of the downstream impacts of something like this, which I guess is another reason I have been holding off.

@spenserblack
Copy link
Contributor

If you're concerned about people who use SCC from the master branch as a dependency, one trick is to push one final commit to master with a warning before renaming. Something like

func init() {
    fmt.Fprintln(os.Stderr, "DEPRECATED: Use scc@main instead of scc@master")
}

Another trick I've seen is to make master a sort of alias by keeping both branches, and pushing anything added to main to master in a workflow. You could probably make a tag called master that always gets force-pushed to the latest main commit.

@boyter
Copy link
Owner

boyter commented Oct 1, 2024

Yeah I had thought about something like that. If I ever do make the effort to rename its something I would do. Most likely by just having master follow main so both work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants