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

Issue 4786041: code review 4786041: goinstall: write to goinstall.log in respective GOPATH (Closed)

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

Description

goinstall: write to goinstall.log in respective GOPATH goinstall: report every newly installed package to the dashboard This makes "goinstall -a" work on systems with GOROOTs that are not user-writable, as is the case with Debian's Go packages. This also makes goinstall.log the canonical list of installed packages, in that only packages new to goinstall.log are reported to the dashboard. A side-effect is that writing to goinstall.log is now mandatory. (A bug in the original implementation meant this was the case, anyway.) The principal benefit of this change is that multiple packages from the same repository can now be reported to the dashboard. It is also less likely for a user to report multiple installations of the same package to the dashboard (they would need to remove the package from goinstall.log first).

Patch Set 1 #

Patch Set 2 : diff -r f7c898383887 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f7c898383887 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f7c898383887 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 5a834cedd347 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 220cd3510c65 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 220cd3510c65 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 220cd3510c65 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 1d82fa674137 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -65 lines) Patch
M src/cmd/goinstall/doc.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/cmd/goinstall/download.go View 1 2 3 4 chunks +17 lines, -28 lines 0 comments Download
M src/cmd/goinstall/main.go View 1 2 3 4 5 6 7 5 chunks +50 lines, -36 lines 0 comments Download

Messages

Total messages: 10
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 3 months ago (2011-07-19 11:16:52 UTC) #1
rsc
http://codereview.appspot.com/4786041/diff/6001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4786041/diff/6001/src/cmd/goinstall/main.go#newcode151 src/cmd/goinstall/main.go:151: for _, t := range build.Path { This isn't ...
14 years, 3 months ago (2011-07-19 15:54:33 UTC) #2
niemeyer
> 2. Write to the element where code was just installed. > > #2 sounds ...
14 years, 3 months ago (2011-07-20 00:50:15 UTC) #3
adg
Hello rsc@golang.org, n13m3y3r@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2011-07-20 01:42:53 UTC) #4
adg
http://codereview.appspot.com/4786041/diff/6001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4786041/diff/6001/src/cmd/goinstall/main.go#newcode151 src/cmd/goinstall/main.go:151: for _, t := range build.Path { On 2011/07/19 ...
14 years, 3 months ago (2011-07-20 01:43:24 UTC) #5
rsc
http://codereview.appspot.com/4786041/diff/11001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4786041/diff/11001/src/cmd/goinstall/main.go#newcode146 src/cmd/goinstall/main.go:146: // in the given tree, if the package is ...
14 years, 3 months ago (2011-07-20 15:02:55 UTC) #6
adg
http://codereview.appspot.com/4786041/diff/11001/src/cmd/goinstall/main.go File src/cmd/goinstall/main.go (right): http://codereview.appspot.com/4786041/diff/11001/src/cmd/goinstall/main.go#newcode146 src/cmd/goinstall/main.go:146: // in the given tree, if the package is ...
14 years, 3 months ago (2011-07-21 01:43:45 UTC) #7
rsc
> The only advantage I can see to this is that we can make -a ...
14 years, 3 months ago (2011-07-24 02:12:45 UTC) #8
rsc
LGTM
14 years, 3 months ago (2011-07-24 02:14:12 UTC) #9
adg
14 years, 3 months ago (2011-07-24 03:43:12 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=7b7b7ef3e147 ***

goinstall: write to goinstall.log in respective GOPATH
goinstall: report every newly installed package to the dashboard

This makes "goinstall -a" work on systems with GOROOTs that are
not user-writable, as is the case with Debian's Go packages.

This also makes goinstall.log the canonical list of installed
packages, in that only packages new to goinstall.log are reported to
the dashboard.

A side-effect is that writing to goinstall.log is now mandatory.
(A bug in the original implementation meant this was the case, anyway.)

The principal benefit of this change is that multiple packages from the
same repository can now be reported to the dashboard.  It is also less
likely for a user to report multiple installations of the same package
to the dashboard (they would need to remove the package from
goinstall.log first).

R=rsc, n13m3y3r
CC=golang-dev
http://codereview.appspot.com/4786041
Sign in to reply to this message.

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