commit | 984ae49b1d037f4aeb9a4d896e6332dd3686cfff | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Jun 18 10:10:01 2018 -0400 |
committer | Russ Cox <rsc@golang.org> | Fri Jun 22 16:39:04 2018 +0000 |
tree | 9ec7363d9d032758aa94ed3d08c9f44a78f3ae8e | |
parent | 0ce674985b4c864495dfc7ea144ca7c55e477441 [diff] |
cmd/go/internal/get: export RepoRootForImportPath for use by modfetch Because we've decided to keep support for the old meta tags and hosting repository special cases, it makes sense for package modfetch to import package get to translate an import path to the enclosing repository root. This CL exports RepoRootForImportPath from package get for use in package modfetch. It also adjusts the import graph to make it possible for modfetch to import get. Before this CL, the graph has get -> load -> vgo -> modfetch, so modfetch cannot import get. This CL reverses the load -> vgo so that vgo is once again a higher-level package, and then there's no problem with modfetch importing get. Eventually some of the details currently isolated to package vgo will move out to the packages that need them, and then we won't have these awkward func values being set during initialization. This CL does not make modfetch import get; it only does the preparation necessary to enable that. Change-Id: I985964c40be3d3e7bd34be9d939c2fb8c76107fd Reviewed-on: https://go-review.googlesource.com/119675 Run-TryBot: Russ Cox <rsc@golang.org> 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.