From e8ae29588d87e931e4c2848f3fe76270c9c70e7d Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 23 Dec 2011 14:09:44 +1100 Subject: [PATCH] cmd/go: update "go help remote" to use correct Google Code urls R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5489114 --- src/cmd/go/help.go | 13 +++++-------- src/cmd/go/list.go | 6 +++--- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/cmd/go/help.go b/src/cmd/go/help.go index 2e8e79a471..f21d9b8c01 100644 --- a/src/cmd/go/help.go +++ b/src/cmd/go/help.go @@ -38,7 +38,7 @@ By convention, this is arranged by starting each path with a unique prefix that belongs to you. For example, paths used internally at Google all begin with 'google', and paths denoting remote repositories begin with the path to the code, -such as 'project.googlecode.com/'. +such as 'code.google.com/p/project'. `, } @@ -66,14 +66,11 @@ A few common code hosting sites have special syntax: Google Code Project Hosting (Git, Mercurial, Subversion) - import "project.googlecode.com/git" - import "project.googlecode.com/git/sub/directory" + import "code.google.com/p/project" + import "code.google.com/p/project/sub/directory" - import "project.googlecode.com/hg" - import "project.googlecode.com/hg/sub/directory" - - import "project.googlecode.com/svn/trunk" - import "project.googlecode.com/svn/trunk/sub/directory" + import "code.google.com/p/project.subrepository" + import "code.google.com/p/project.subrepository/sub/directory" Launchpad (Bazaar) diff --git a/src/cmd/go/list.go b/src/cmd/go/list.go index 4d9fed793f..21ebb5e200 100644 --- a/src/cmd/go/list.go +++ b/src/cmd/go/list.go @@ -18,9 +18,9 @@ List lists the packages named by the import paths, one per line. The default output shows the package name and file system location: - books /home/you/src/google-api-go-client.googlecode.com/hg/books/v1 - oauth /home/you/src/goauth2.googlecode.com/hg/oauth - sqlite /home/you/src/gosqlite.googlecode.com/hg/sqlite + books /home/you/src/code.google.com/p/google-api-go-client/books/v1 + oauth /home/you/src/code.google.com/p/goauth2/oauth + sqlite /home/you/src/code.google.com/p/sqlite The -f flag specifies an alternate format for the list, using the syntax of package template. The default output