Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(570)

Unified Diff: src/cmd/go/get.go

Issue 5660051: code review 5660051: cmd/go: allow go get with arbitrary URLs (Closed)
Patch Set: diff -r f46217216512 https://go.googlecode.com/hg/ Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/go/discovery.go ('k') | src/cmd/go/http.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/go/get.go
===================================================================
--- a/src/cmd/go/get.go
+++ b/src/cmd/go/get.go
@@ -162,10 +162,11 @@
} else {
// Analyze the import path to determine the version control system,
// repository, and the import path for the root of the repository.
- vcs, repo, rootPath, err = vcsForImportPath(p.ImportPath)
- }
- if err != nil {
- return err
+ rr, err := repoRootForImportPath(p.ImportPath)
+ if err != nil {
+ return err
+ }
+ vcs, repo, rootPath = rr.vcs, rr.repo, rr.root
}
if p.build.SrcRoot == "" {
« no previous file with comments | « src/cmd/go/discovery.go ('k') | src/cmd/go/http.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b