golang/go

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

オープン

#41,312 opened on 2020/09/10

 (9 件のコメント) (7 件のリアクション) (0 人の担当者)Go (19,008 件のフォーク)batch import
NeedsInvestigationhelp wantedpkgsite

Repository metrics

Stars
 (133,883 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド