-
Notifications
You must be signed in to change notification settings - Fork 481
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
deprecate devbranch
defaulting to master?
#1443
Comments
The vast majority of repos use and likely will use master for a long time so to me it makes sense to keep the current default. |
New repositories are created with I think we also want to keep an eye on how PkgTemplates handles it (#233), since I expect most Documenter configurations nowadays to be generated that way. I assume that, at the moment, PkgTemplates still commits the generated content onto Minimally, we should probably add a note to the docs about this. |
PkgTemplates lets you manually specify the default branch, and otherwise uses your I'll make sure to specify |
Currently working on it :) |
I think the right change will require the edit: I definitely thought this was the PkgTemplates issue 😅 By "mentioned above", I meant JuliaCI/PkgTemplates.jl#233 (comment). |
[EDITED] For those affected, the way to use Documenter to deploy the documentation to GitHub pages is to use the following call to
|
14: DeployDocs devbranch = main r=mattBrzezinski a=mattBrzezinski - JuliaDocs/Documenter.jl#1443 Co-authored-by: Matt Brzezinski <[email protected]>
Attempt to fix: ┌ Warning: Possible deploydocs() misconfiguration: main vs master │ Documenter's configured primary development branch (`devbranch`) is "master", but the │ current branch (from $GITHUB_REF) is "main". This can happen because Documenter uses │ GitHub's old default primary branch name as the default value for `devbranch`. │ │ If your primary development branch is 'main', you must explicitly pass `devbranch = "main"` │ to deploydocs. │ │ See #1443 for more discussion: JuliaDocs/Documenter.jl#1443 └ @ Documenter ~/.julia/packages/Documenter/ruzxx/src/deployconfig.jl:398
Hello all. Are there plans for this change? Will the default be updated to |
That would be breaking and require a lot of updates to existing repositories. I personally prefer a bit of extra work for new repositories that use new naming conventions over breaking things that currently work. |
But what's the official position? Will a date or version be set for a deprecation? It won't happen until some trigger? It won't happen at all? |
we can just put it in a breaking release. i don't see why Documenter.jl would be different to other packages; if you want to avoid getting breaking changes, set a |
Can we workout something that is automatic? That feels feasible, since we do get an error when trying to use We could even do something more general that also perhaps accepts |
i believe it's now been >1 year since GitHub changed to having the default branch be named Anyway, now it's no longer brand new (and is the default for all(?) major git-hosting-services), i think it's reasonable to reconsider changing the default of course, something automatic that would be unlikely to break things in practice would be nicest 😊 |
This doesn't change the work that has to be done downstream. Breaking changes are bad and the cost should always be considered. And even if you make a breaking release, it is ideal to keep the amount of breakage as low as possible. Trying to do something automatic here sounds like a much better plan forward. It should not be very hard for someone that is interested in doing this, see eg https://stackoverflow.com/questions/28666357/git-how-to-get-default-branch |
Currently
devbranch
indeploydocs
defaults tomaster
. Since GitHub now usesmain
as the default name of the dev branch, would it make sense to add a deprecation requiring users to explicitly specify thedevbranch
, so the default could eventually be changed tomain
?The text was updated successfully, but these errors were encountered: