commit | 4d9b02850c0afb4117a553f1fa8e744b86312dc2 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Fri Apr 06 16:30:11 2018 -0400 |
committer | Russ Cox <rsc@golang.org> | Wed Apr 25 00:46:49 2018 +0000 |
tree | 70f2015514aac63f6bf179fbd494d1dd974c972e | |
parent | 8a75bf493f03fd163ae3604dcc8aedd9b6141315 [diff] |
cmd/go/internal/modfetch: allow branch name as rev identifier If someone runs "vgo get x@rev" or adds "require x rev" to go.mod and rev is a commit hash or git tag, vgo automatically replaces it with the pseudo-version for the underlying commit. This CL makes vgo do the same for branch names: the head commit of the branch at that moment is recorded. This allows running vgo get github.com/gobuffalo/buffalo@development to sync with the current buffalo development branch. Fixes golang/go#24045. Change-Id: I8a58ed3a574e5ee839d37ad452436f80ac8081dc Reviewed-on: https://go-review.googlesource.com/105216 Reviewed-by: Bryan C. Mills <bcmills@google.com>
This repository holds a prototype of what the go command might look like with integrated support for package versioning.
See research.swtch.com/vgo for documents about the design.
Use go get -u golang.org/x/vgo
.
You can also manually git clone the repository to $GOPATH/src/golang.org/x/vgo
.
See CONTRIBUTING.md.
This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix x/vgo:
in the issue title.
Thank you.