Skip to content
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

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

Open
hugelgupf opened this issue Sep 10, 2020 · 1 comment
Open

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

hugelgupf opened this issue Sep 10, 2020 · 1 comment

Comments

@hugelgupf
Copy link
Contributor

@hugelgupf hugelgupf commented Sep 10, 2020

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

@julieqiu
Copy link
Contributor

@julieqiu julieqiu commented Sep 10, 2020

Thanks @hugelgupf for bringing this up! We would like to add support for this, but can't get to it right now.

If someone wants to propose a design and send us a CL, we would be happy to accept the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.