]> Cypherpunks repositories - gostls13.git/commit
goinstall: write to goinstall.log in respective GOPATH
authorAndrew Gerrand <adg@golang.org>
Sun, 24 Jul 2011 03:43:08 +0000 (13:43 +1000)
committerAndrew Gerrand <adg@golang.org>
Sun, 24 Jul 2011 03:43:08 +0000 (13:43 +1000)
commitfc2480da3c759dc444993d8e4b11ab5fe0777406
tree710e34ec8cc0e04ac2cc0899954bb61878841295
parentd56c8132e8f70629cccf2f851cb50846b1a3ef09
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
https://golang.org/cl/4786041
src/cmd/goinstall/doc.go
src/cmd/goinstall/download.go
src/cmd/goinstall/main.go