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

Issue 12316043: code review 12316043: misc/dist: don't ship cmd/api (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by bradfitz
Modified:
11 years, 10 months ago
Reviewers:
adg1, dsymonds, rsc
CC:
golang-dev, adg1, dsymonds, rsc
Visibility:
Public.

Description

misc/dist: don't ship cmd/api cmd/api is a tool to prevent the Go developers from breaking the Go 1 API promise. It has no utility to end users and doesn't run on arbitrary packages (it's always been full of hacks for its bespoke type checker to work on the standard library) Robert's in-progress rewrite depends on the go.tools repo for go/types, so we won't be able to ship this tool later anyway. Just remove it from binary distributions. A future change to run.bash can conditionally build & run cmd/api, perhaps automatically fetching go/types if necessary. I assume people don't want to vendor go/types into a private gopath just for cmd/api. I will need help with run.bat.

Patch Set 1 #

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M misc/dist/bindist.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/run.bash View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 13
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 10 months ago (2013-08-02 03:34:32 UTC) #1
adg1
Maybe we should strip out all.bash, make.bash, the dist tool, etc from the binary distros ...
11 years, 10 months ago (2013-08-02 03:49:58 UTC) #2
dsymonds
The misc/dist/bindist.go change looks fine, but it'd be nice to leave the execution of the ...
11 years, 10 months ago (2013-08-02 03:50:50 UTC) #3
bradfitz
On Thu, Aug 1, 2013 at 8:50 PM, David Symonds <dsymonds@golang.org> wrote: > The misc/dist/bindist.go ...
11 years, 10 months ago (2013-08-02 03:56:07 UTC) #4
bradfitz
On Thu, Aug 1, 2013 at 8:49 PM, Andrew Gerrand <adg@google.com> wrote: > Maybe we ...
11 years, 10 months ago (2013-08-02 03:56:34 UTC) #5
dsymonds
Hmm. The source downloads were always a bit odd in my mind. I would have ...
11 years, 10 months ago (2013-08-02 04:01:47 UTC) #6
bradfitz
No, they're not hacking on the standard library and sending patches. They're just compiling. Tough ...
11 years, 10 months ago (2013-08-02 04:06:09 UTC) #7
dsymonds
How do they get godoc? Isn't that in the same situation?
11 years, 10 months ago (2013-08-02 04:08:29 UTC) #8
dsymonds
anyway, LGTM
11 years, 10 months ago (2013-08-02 04:10:42 UTC) #9
adg1
Ah, I forgot about the source tarballs. LGTM On 2 Aug 2013 13:56, "Brad Fitzpatrick" ...
11 years, 10 months ago (2013-08-02 05:21:08 UTC) #10
rsc
LGTM https://codereview.appspot.com/12316043/diff/6001/src/run.bash File src/run.bash (right): https://codereview.appspot.com/12316043/diff/6001/src/run.bash#newcode181 src/run.bash:181: echo tabs please
11 years, 10 months ago (2013-08-02 17:01:49 UTC) #11
bradfitz
https://codereview.appspot.com/12316043/diff/6001/src/run.bash File src/run.bash (right): https://codereview.appspot.com/12316043/diff/6001/src/run.bash#newcode181 src/run.bash:181: echo On 2013/08/02 17:01:49, rsc wrote: > tabs please ...
11 years, 10 months ago (2013-08-02 17:15:59 UTC) #12
bradfitz
11 years, 10 months ago (2013-08-02 17:19:56 UTC) #13
*** Submitted as https://code.google.com/p/go/source/detail?r=564e8c77a065 ***

misc/dist: don't ship cmd/api

cmd/api is a tool to prevent the Go developers from breaking
the Go 1 API promise. It has no utility to end users and
doesn't run on arbitrary packages (it's always been full of
hacks for its bespoke type checker to work on the standard
library)

Robert's in-progress rewrite depends on the go.tools repo for
go/types, so we won't be able to ship this tool later
anyway. Just remove it from binary distributions.

A future change to run.bash can conditionally build & run
cmd/api, perhaps automatically fetching go/types if
necessary. I assume people don't want to vendor go/types into
a private gopath just for cmd/api.

I will need help with run.bat.

R=golang-dev, adg, dsymonds, rsc
CC=golang-dev
https://codereview.appspot.com/12316043
Sign in to reply to this message.

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