golang/go

x/pkgsite: support viewing a package @ default branch HEAD

开放

#41,312 创建于 2020年9月10日

 (9 条评论) (7 个反应) (0 位负责人)Go (19,008 个派生)batch import
NeedsInvestigationhelp wantedpkgsite

仓库指标

星标
 (133,883 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Previously, #36811 added support for viewing packages at master on pkg.go.dev. Many repos are moving their default branch names away from master to main or something-else-not-master.

It seems that master is hard-coded in pkgsite.

Would it be possible to support some kind of magic version string that gets the default branch, whatever it may be named? This may end up being the reason that I move some of my repos back to master, which I'd like to avoid.

See also this comment as FYI

cc @julieqiu

贡献者指南