PkgTemplates.jl icon indicating copy to clipboard operation
PkgTemplates.jl copied to clipboard

GitHub default branch should be main not master

Open zengmao opened this issue 10 months ago • 2 comments

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.

zengmao avatar Apr 22 '24 08:04 zengmao

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?

gdalle avatar Apr 22 '24 08:04 gdalle

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.

nsajko avatar May 06 '24 11:05 nsajko