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

Issue 72770043: code review 72770043: cmd/go: allow use of Context in 'go list -f' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by rick
Modified:
9 years, 11 months ago
Reviewers:
adg, rsc
CC:
golang-codereviews, gobot, adg, rsc
Visibility:
Public.

Description

cmd/go: allow use of Context in 'go list -f' Add a $Context variable to the template so that the build.Context values such as BuildTags can be accessed. Fixes issue 6666.

Patch Set 1 #

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

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

Total comments: 6

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

Total comments: 4

Patch Set 5 : diff -r f60620ad71fa https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r f60620ad71fa https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -5 lines) Patch
A src/cmd/go/context.go View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M src/cmd/go/doc.go View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download
M src/cmd/go/list.go View 1 2 3 4 5 3 chunks +33 lines, -3 lines 0 comments Download
M src/cmd/go/test.bash View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13
rick
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 1 month ago (2014-03-08 03:01:16 UTC) #1
gobot
R=adg@golang.org (assigned by adg@golang.org)
10 years, 1 month ago (2014-03-17 22:17:51 UTC) #2
adg
You must run "mkdoc.sh" after updating any documentation strings https://codereview.appspot.com/72770043/diff/40001/src/cmd/go/context.go File src/cmd/go/context.go (right): https://codereview.appspot.com/72770043/diff/40001/src/cmd/go/context.go#newcode24 src/cmd/go/context.go:24: ...
10 years, 1 month ago (2014-03-19 21:27:17 UTC) #3
rick
PTAL (also ran mkdoc.sh) https://codereview.appspot.com/72770043/diff/40001/src/cmd/go/context.go File src/cmd/go/context.go (right): https://codereview.appspot.com/72770043/diff/40001/src/cmd/go/context.go#newcode24 src/cmd/go/context.go:24: func NewContext(c *build.Context) *Context { ...
10 years, 1 month ago (2014-03-19 22:10:49 UTC) #4
adg
LGTM leaving for rsc
10 years, 1 month ago (2014-03-19 22:37:01 UTC) #5
gobot
R=rsc@golang.org (assigned by adg@golang.org)
10 years, 1 month ago (2014-03-19 22:37:11 UTC) #6
rsc
https://codereview.appspot.com/72770043/diff/60001/src/cmd/go/doc.go File src/cmd/go/doc.go (right): https://codereview.appspot.com/72770043/diff/60001/src/cmd/go/doc.go#newcode335 src/cmd/go/doc.go:335: The global variable $Context is also passed to the ...
10 years ago (2014-03-24 23:15:04 UTC) #7
rick
PTAL https://codereview.appspot.com/72770043/diff/60001/src/cmd/go/doc.go File src/cmd/go/doc.go (right): https://codereview.appspot.com/72770043/diff/60001/src/cmd/go/doc.go#newcode335 src/cmd/go/doc.go:335: The global variable $Context is also passed to ...
10 years ago (2014-03-25 01:18:14 UTC) #8
rsc
https://codereview.appspot.com/72770043/diff/80001/src/cmd/go/list.go File src/cmd/go/list.go (right): https://codereview.appspot.com/72770043/diff/80001/src/cmd/go/list.go#newcode153 src/cmd/go/list.go:153: fm := template.FuncMap{ okay, last change: var cachedCtxt *Context ...
10 years ago (2014-03-25 01:33:07 UTC) #9
rick
PTAL https://codereview.appspot.com/72770043/diff/80001/src/cmd/go/list.go File src/cmd/go/list.go (right): https://codereview.appspot.com/72770043/diff/80001/src/cmd/go/list.go#newcode153 src/cmd/go/list.go:153: fm := template.FuncMap{ On 2014/03/25 01:33:07, rsc wrote: ...
10 years ago (2014-03-25 01:48:46 UTC) #10
rsc
LGTM
10 years ago (2014-04-08 18:40:15 UTC) #11
adg
Russ, do you intend to submit this or wait until after Go 1.3?
10 years ago (2014-04-08 23:46:18 UTC) #12
rsc
10 years ago (2014-04-09 02:35:33 UTC) #13
*** Submitted as https://code.google.com/p/go/source/detail?r=993c2116e413 ***

cmd/go: allow use of Context in 'go list -f'

Add a $Context variable to the template so that the build.Context values
such as BuildTags can be accessed.

Fixes issue 6666.

LGTM=adg, rsc
R=golang-codereviews, gobot, adg, rsc
CC=golang-codereviews
https://codereview.appspot.com/72770043

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