JuliaCI / PkgTemplates.jl

Create new Julia packages, the easy way
https://juliaci.github.io/PkgTemplates.jl
MIT License
640 stars 101 forks source link

GitHub default branch should be main not master #470

Open zengmao opened 7 months ago

zengmao commented 7 months ago

When generating a new package folder interactively, you need to manually change the default branch from master to main to comply with GitHub's current default (the latter). This needs to be updated.

gdalle commented 7 months ago

I think PkgTemplates is doing everything it can on this side:

https://github.com/JuliaCI/PkgTemplates.jl/blob/8b857be7f1ec51518d47d9464baa7cfa34d3f1f9/src/plugins/git.jl#L1-L15

The problem is likely further upstream, maybe libgit2 is still using master as default?

nsajko commented 6 months ago

I always use PkgTemplates via the interactive generate() process. FTR all of my new packages get main instead of master for a long time now. Not that I care.