-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Problem
The default branch is named master, which does not match modern conventions. GitHub now defaults to main for new repositories, and most Go projects and tooling expect main.
Steps
- Rename the branch on GitHub: Settings → Branches → Rename
mastertomain - Update local checkouts:
git branch -m master main && git fetch origin && git branch -u origin/main main - Update hardcoded references in the repo:
.github/workflows/test.yml:git-token: ${{ github.ref_name == 'master' && ... }}→mainREADME.md: badge URL...badges/.badges/master/coverage.svg→...badges/.badges/main/coverage.svg.goreleaser.yml: verify no hardcoded branch references
- Rename the badge path on the
badgesbranch: move.badges/master/→.badges/main/ - Update the
fgrosse/go-coverage-reportbaseline lookup — it searches for artifacts from themasterbranch push workflow; this will update automatically once the branch is renamed
Notes
GitHub will automatically redirect master → main for existing clone URLs, so existing users will not be broken immediately. The redirect is not permanent — users should update their remotes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request