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

Issue 155160043: code review 155160043: cmd/go: force rebuild of imported "main" packages

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by kevinwallace
Modified:
9 years, 5 months ago
Reviewers:
CC:
rsc, golang-codereviews, bradfitz, adg1
Visibility:
Public.

Description

cmd/go: force rebuild of imported "main" packages `go build` doesn't differentiate between building a "main" package into an archive and building it into an executable. As a result, if the executable exists but the archive does not, it is considered non-stale, even if an archive is needed by a dependent package. This change causes us to always rebuild imported "main" packages as a workaround until `go build` is made aware of the difference between building a package into an archive and building a package into an executable. Fixes issue 4210.

Patch Set 1 #

Patch Set 2 : diff -r c5ee3f481631a7ddd652722e7dacf59daca12822 https://code.google.com/p/go #

Patch Set 3 : diff -r c5ee3f481631a7ddd652722e7dacf59daca12822 https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : use short issue url #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/cmd/go/pkg.go View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 7
kevinwallace
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 7 months ago (2014-10-09 00:46:16 UTC) #1
bradfitz
R=rsc,adg On Thu, Oct 9, 2014 at 2:46 AM, <kevin@pentabarf.net> wrote: > Reviewers: golang-codereviews, > ...
9 years, 7 months ago (2014-10-09 20:48:03 UTC) #2
kevinwallace
Ping? Hope I'm not being overbearing, but I suspect this got lost in the noise ...
9 years, 6 months ago (2014-10-28 18:58:43 UTC) #3
adg1
This is one for russ to review. https://codereview.appspot.com/155160043/diff/20002/src/cmd/go/pkg.go File src/cmd/go/pkg.go (right): https://codereview.appspot.com/155160043/diff/20002/src/cmd/go/pkg.go#newcode576 src/cmd/go/pkg.go:576: // See ...
9 years, 6 months ago (2014-10-28 23:35:05 UTC) #4
kevinwallace
https://codereview.appspot.com/155160043/diff/20002/src/cmd/go/pkg.go File src/cmd/go/pkg.go (right): https://codereview.appspot.com/155160043/diff/20002/src/cmd/go/pkg.go#newcode576 src/cmd/go/pkg.go:576: // See https://code.google.com/p/go/issues/detail?id=4210 On 2014/10/28 23:35:05, adg1 wrote: > ...
9 years, 6 months ago (2014-10-29 23:58:04 UTC) #5
rsc
I don't understand. You are not supposed to be able to import packages named main. ...
9 years, 6 months ago (2014-10-30 00:49:00 UTC) #6
gobot
9 years, 5 months ago (2014-12-19 05:14:14 UTC) #7
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/155160043 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

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