You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.
go get relies, at times sort of implicitly, on having the upstream repository determine which branch should be grabbed on initial clone...at least in cases like git, where branches are multiplexed and not expressed directly in the path. (Also the case for hg, not the case for bzr or svn).
In order to remain maximally similar to go get, we need to have these branches always sort higher than other branches in version queues (where they are otherwise alpha-sorted). This guarantees that the solver will try them first, which amounts to the being the same as go get when no semver tags are available.
Implementing this symbolically shouldn't be very difficult - an extra field on branchVersion to indicate whether it's a default branch or not. What's slightly trickier - or at least possibly more costly wrt network requests - is figuring out what that default branch is in ListVersions().
The text was updated successfully, but these errors were encountered:
go get
relies, at times sort of implicitly, on having the upstream repository determine which branch should be grabbed on initial clone...at least in cases like git, where branches are multiplexed and not expressed directly in the path. (Also the case for hg, not the case for bzr or svn).In order to remain maximally similar to
go get
, we need to have these branches always sort higher than other branches in version queues (where they are otherwise alpha-sorted). This guarantees that the solver will try them first, which amounts to the being the same asgo get
when no semver tags are available.Implementing this symbolically shouldn't be very difficult - an extra field on
branchVersion
to indicate whether it's a default branch or not. What's slightly trickier - or at least possibly more costly wrt network requests - is figuring out what that default branch is inListVersions()
.The text was updated successfully, but these errors were encountered: