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

Issue 1947041: code review 1947041: goinstall: added -a flag to mean "all remote packages" (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 7 months ago by bytbox
Modified:
14 years, 6 months ago
Reviewers:
CC:
rsc, adg, golang-dev
Visibility:
Public.

Description

goinstall: added -a flag to mean "all remote packages" Fixes issue 897. goinstall -a can be used to reinstall all packages after an upgrade goinstall -a -u can be used to update all package A history of remote package installs is stored in $GOROOT/goinstall.log

Patch Set 1 #

Patch Set 2 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Total comments: 6

Patch Set 3 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Patch Set 4 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Total comments: 8

Patch Set 5 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Total comments: 4

Patch Set 6 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Total comments: 2

Patch Set 7 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Total comments: 2

Patch Set 8 : code review 1947041: goinstall: added -a flag to mean "all remote packages" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -12 lines) Patch
M .hgignore View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/goinstall/doc.go View 1 2 3 4 2 chunks +23 lines, -4 lines 0 comments Download
M src/cmd/goinstall/main.go View 1 2 3 4 5 6 7 5 chunks +57 lines, -8 lines 0 comments Download

Messages

Total messages: 19
bytbox
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 7 months ago (2010-08-10 03:46:53 UTC) #1
rsc1
Thanks for doing this. It's a great addition. http://codereview.appspot.com/1947041/diff/5/2003 File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/1947041/diff/5/2003#newcode23 src/cmd/goinstall/main.go:23: fmt.Fprint(os.Stderr, ...
14 years, 7 months ago (2010-08-12 03:19:06 UTC) #2
bytbox
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-08-14 01:26:21 UTC) #3
bytbox
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 7 months ago (2010-08-17 11:45:17 UTC) #4
rsc1
http://codereview.appspot.com/1947041/diff/11001/12002 File src/cmd/goinstall/doc.go (right): http://codereview.appspot.com/1947041/diff/11001/12002#newcode18 src/cmd/goinstall/doc.go:18: -l=true log installed packages to $GOROOT/goinstall.log for use by ...
14 years, 6 months ago (2010-08-26 16:28:22 UTC) #5
bytbox
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-08-27 04:05:43 UTC) #6
rsc1
http://codereview.appspot.com/1947041/diff/23001/24003 File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/1947041/diff/23001/24003#newcode36 src/cmd/goinstall/main.go:36: logfile = path.Join(os.Getenv("GOROOT"), "goinstall.log") s/os.Getenv("GOROOT")/root/ http://codereview.appspot.com/1947041/diff/23001/24003#newcode42 src/cmd/goinstall/main.go:42: logPkgs = ...
14 years, 6 months ago (2010-08-27 04:10:03 UTC) #7
bytbox
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-08-27 04:19:45 UTC) #8
rsc1
http://codereview.appspot.com/1947041/diff/29001/30003 File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/1947041/diff/29001/30003#newcode77 src/cmd/goinstall/main.go:77: readPackageList() doesn't seem right - you won't have a ...
14 years, 6 months ago (2010-08-27 04:26:13 UTC) #9
bytbox
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-08-28 01:24:28 UTC) #10
adg
http://codereview.appspot.com/1947041/diff/35001/36003 File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/1947041/diff/35001/36003#newcode39 src/cmd/goinstall/main.go:39: pkglist []string Seems like installedPkgs and pkglist are the ...
14 years, 6 months ago (2010-08-30 07:13:04 UTC) #11
rsc
> http://codereview.appspot.com/1947041/diff/35001/36003#newcode39 > src/cmd/goinstall/main.go:39: pkglist []string > Seems like installedPkgs and pkglist are the same. ...
14 years, 6 months ago (2010-08-30 14:32:14 UTC) #12
bytbox
Hello rsc, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2010-08-30 23:23:32 UTC) #13
bytbox
> Not exactly. One preserves the order in the file, one does not. Although the ...
14 years, 6 months ago (2010-08-30 23:23:46 UTC) #14
rsc
On Mon, Aug 30, 2010 at 19:23, Scott Lawrence <bytbox@gmail.com> wrote: >> Not exactly. One ...
14 years, 6 months ago (2010-08-30 23:26:07 UTC) #15
bytbox
Assuming packages aren't broken, requiring manual installation in a certain order, it should work. That ...
14 years, 6 months ago (2010-08-30 23:33:03 UTC) #16
rsc
On Mon, Aug 30, 2010 at 19:33, Scott Lawrence <bytbox@gmail.com> wrote: > Assuming packages aren't ...
14 years, 6 months ago (2010-08-30 23:35:19 UTC) #17
rsc1
LGTM
14 years, 6 months ago (2010-08-31 01:14:02 UTC) #18
rsc
14 years, 6 months ago (2010-09-02 17:48:32 UTC) #19
*** Submitted as http://code.google.com/p/go/source/detail?r=af581243d06e ***

goinstall: added -a flag to mean "all remote packages"
Fixes issue 897.

goinstall -a can be used to reinstall all packages after an upgrade
goinstall -a -u can be used to update all package
A history of remote package installs is stored in $GOROOT/goinstall.log

R=rsc, adg
CC=golang-dev
http://codereview.appspot.com/1947041

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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