]> Cypherpunks repositories - gostls13.git/log
gostls13.git
13 years ago[release-branch.go1] doc/code: mention $GOBIN
Shenghou Ma [Mon, 16 Apr 2012 16:41:27 +0000 (02:41 +1000)]
[release-branch.go1] doc/code: mention $GOBIN

««« backport 543047268d1a
doc/code: mention $GOBIN

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5989045

»»»

13 years ago[release-branch.go1] time: parse fractional second with single digit
Robert Hencke [Mon, 16 Apr 2012 01:56:37 +0000 (11:56 +1000)]
[release-branch.go1] time: parse fractional second with single digit

««« backport 99292bad0d6d
time: parse fractional second with single digit

Fixes #3487.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6011050

»»»

13 years ago[release-branch.go1] crypto/tls: don't always use the default private key.
Adam Langley [Thu, 12 Apr 2012 16:35:21 +0000 (12:35 -0400)]
[release-branch.go1] crypto/tls: don't always use the default private key.

««« backport 6a2ea47583df
crypto/tls: don't always use the default private key.

When SNI based certificate selection is enabled, we previously used
the default private key even if we selected a non-default certificate.

Fixes #3367.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5987058
»»»

13 years ago[release-branch.go1] doc: update Mercurial installation instructions
Andrew Gerrand [Sat, 14 Apr 2012 03:27:11 +0000 (13:27 +1000)]
[release-branch.go1] doc: update Mercurial installation instructions

««« backport f6e1ee2d8cd1
doc: update Mercurial installation instructions

R=r
CC=golang-dev
https://golang.org/cl/6031046
»»»

13 years ago[release-branch.go1] doc/effective_go.html: fixed the Request channel parameter
Jongmin Kim [Fri, 13 Apr 2012 05:22:40 +0000 (15:22 +1000)]
[release-branch.go1] doc/effective_go.html: fixed the Request channel parameter

««« backport 29acc3fb59c3
doc/effective_go.html: fixed the Request channel parameter

R=golang-dev, r
CC=golang-dev, gri
https://golang.org/cl/6010051

»»»

13 years ago[release-branch.go1] time: panic if UnixNano is out of range
Gustavo Niemeyer [Fri, 13 Apr 2012 01:16:31 +0000 (22:16 -0300)]
[release-branch.go1] time: panic if UnixNano is out of range

««« backport 4ed98a6b6fe5
time: panic if UnixNano is out of range

R=golang-dev, remyoudompheng, dsymonds, gustavo, dchest, r, rsc
CC=golang-dev
https://golang.org/cl/5985059
»»»

13 years ago[release-branch.go1] fmt: fix crash of %b on huge negative int64
Rob Pike [Thu, 12 Apr 2012 23:28:37 +0000 (09:28 +1000)]
[release-branch.go1] fmt: fix crash of %b on huge negative int64

««« backport 344d5c33331a
fmt: fix crash of %b on huge negative int64
The buffer had 64 bytes but needs one more for the sign.

Fixes #3510.

R=golang-dev, dave, dsymonds
CC=golang-dev
https://golang.org/cl/6011057
»»»

13 years ago[release-branch.go1] encoding/pem: ignore spaces and tabs at the end of header lines.
Adam Langley [Thu, 12 Apr 2012 16:33:52 +0000 (12:33 -0400)]
[release-branch.go1] encoding/pem: ignore spaces and tabs at the end of header lines.

««« backport 5eadbc72f1d2
encoding/pem: ignore spaces and tabs at the end of header lines.

Fixes #3502.

R=bradfitz
CC=golang-dev
https://golang.org/cl/6011046
»»»

13 years ago[release-branch.go1] html, exp/html: escape ' and " as ' and ", since IE8 and
Nigel Tao [Wed, 11 Apr 2012 23:35:43 +0000 (09:35 +1000)]
[release-branch.go1] html, exp/html: escape ' and " as ' and ", since IE8 and

««« backport a70135896879
html, exp/html: escape ' and " as ' and ", since IE8 and
below do not support '.

This makes package html consistent with package text/template's
HTMLEscape function.

Fixes #3489.

R=rsc, mikesamuel, dsymonds
CC=golang-dev
https://golang.org/cl/5992071
»»»

13 years ago[release-branch.go1] doc: fix minor typo in Go 1 release notes
Dave Cheney [Wed, 11 Apr 2012 00:59:03 +0000 (10:59 +1000)]
[release-branch.go1] doc: fix minor typo in Go 1 release notes

««« backport 75c94686a4d7
doc: fix minor typo in Go 1 release notes

Fixes #3478.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5986074

»»»

13 years ago[release-branch.go1] os: fix IsPermission on windows
Alex Brainman [Tue, 10 Apr 2012 00:07:29 +0000 (10:07 +1000)]
[release-branch.go1] os: fix IsPermission on windows

««« backport 1b2b113a2d66
os: fix IsPermission on windows

Fixes #3482.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5987070
»»»

13 years ago[release-branch.go1] runtime.Callers: make documentation match code
Rob Pike [Mon, 9 Apr 2012 23:47:57 +0000 (09:47 +1000)]
[release-branch.go1] runtime.Callers: make documentation match code

««« backport a7db811befb8
runtime.Callers: make documentation match code
It is a bug that Caller and Callers disagree about the offset of the skip
parameter. Document the bug.

R=rsc, dsymonds, r, iant
CC=golang-dev
https://golang.org/cl/5976064
»»»

13 years ago[release-branch.go1] doc/code: update newmath.Sqrt test case to make sure test succeed
Shenghou Ma [Mon, 9 Apr 2012 17:55:51 +0000 (01:55 +0800)]
[release-branch.go1] doc/code: update newmath.Sqrt test case to make sure test succeed

««« backport aa9954952235
doc/code: update newmath.Sqrt test case to make sure test succeed
        Fixes #3445.

R=golang-dev, rsc, mtj
CC=golang-dev
https://golang.org/cl/5975061
»»»

13 years ago[release-branch.go1] doc/go_spec: fix a typo
Shenghou Ma [Mon, 9 Apr 2012 17:50:46 +0000 (01:50 +0800)]
[release-branch.go1] doc/go_spec: fix a typo

««« backport 1c42d454d4dd
doc/go_spec: fix a typo

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5989065
»»»

13 years ago[release-branch.go1] net/url: Correctly escape URL as per RFC 3986
Stéphane Travostino [Thu, 5 Apr 2012 17:23:08 +0000 (13:23 -0400)]
[release-branch.go1] net/url: Correctly escape URL as per RFC 3986

««« backport 6b46fb967ca4
net/url: Correctly escape URL as per RFC 3986

The shouldEscape function did not correctly escape the reserved characters listed in RFC 3986 §2.2, breaking some strict web servers.
Fixes #3433.

R=rsc
CC=golang-dev
https://golang.org/cl/5970050

»»»

13 years ago[release-branch.go1] A+C: Stéphane Travostino (individual CLA)
Russ Cox [Thu, 5 Apr 2012 17:13:34 +0000 (13:13 -0400)]
[release-branch.go1] A+C: Stéphane Travostino (individual CLA)

««« backport 6c0fd8ec2c77
A+C: Stéphane Travostino (individual CLA)

R=golang-dev
CC=golang-dev
https://golang.org/cl/5991048
»»»

13 years ago[release-branch.go1] doc/go_spec: fix typo
Hong Ruiqi [Thu, 5 Apr 2012 12:37:07 +0000 (22:37 +1000)]
[release-branch.go1] doc/go_spec: fix typo

««« backport d10b521f63d1
doc/go_spec: fix typo

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5990043

»»»

13 years ago[release-branch.go1] doc: shorten project dashboard link
Andrew Gerrand [Thu, 5 Apr 2012 01:17:18 +0000 (11:17 +1000)]
[release-branch.go1] doc: shorten project dashboard link

««« backport 4e6ea52ad147
doc: shorten project dashboard link

Fixes #3420.
(which was already fixed)

R=golang-dev, bradfitz, dsymonds
CC=golang-dev
https://golang.org/cl/5987043
»»»

13 years ago[release-branch.go1] cmd/go: in go get, don't try to perform discovery on non-hosts
Brad Fitzpatrick [Wed, 4 Apr 2012 14:24:13 +0000 (07:24 -0700)]
[release-branch.go1] cmd/go: in go get, don't try to perform discovery on non-hosts

««« backport 2a52a9484c10
cmd/go: in go get, don't try to perform discovery on non-hosts

Before, "go get -v foo/bar" was assuming "foo" was a hostname
and trying to perform discovery on it. Now, require a dot in
the first path component (the hostname).

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5981057
»»»

13 years ago[release-branch.go1] encoding/ascii85: fix panic caused by special case
Dmitry Chestnykh [Wed, 4 Apr 2012 13:52:42 +0000 (09:52 -0400)]
[release-branch.go1] encoding/ascii85: fix panic caused by special case

««« backport b127df6df1ab
encoding/ascii85: fix panic caused by special case

Special case for encoding 4 zeros as 'z' didn't
update source slice, causing 'index out of bounds'
panic in destination slice.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5970078

»»»

13 years ago[release-branch.go1] sql: Propagate error from subsetTypeArgs in Exec
Michael Lewis [Tue, 3 Apr 2012 22:36:48 +0000 (15:36 -0700)]
[release-branch.go1] sql: Propagate error from subsetTypeArgs in Exec

««« backport dd8f13acda2e
sql: Propagate error from subsetTypeArgs in Exec

Fixes #3449

R=golang-dev
CC=bradfitz, golang-dev
https://golang.org/cl/5970076

»»»

13 years ago[release-branch.go1] time.RFC822: make the string standard-compliant
Rob Pike [Tue, 3 Apr 2012 20:54:39 +0000 (06:54 +1000)]
[release-branch.go1] time.RFC822: make the string standard-compliant

««« backport fda7b4c9978d
time.RFC822: make the string standard-compliant
For mysterious reasons, the existing string was just wrong: it was missing a colon.
There is no apparent reason for this discrepancy.

This should be safe to fix because existing uses would not be RFC822-compliant;
people cannot be depending on it to generate correct mail headers.

Fixes #3444.

R=golang-dev, dsymonds, iant, rsc
CC=golang-dev
https://golang.org/cl/5969072
»»»

13 years ago[release-branch.go1] A+C: add Michael Lewis (Individual CLA)
Brad Fitzpatrick [Tue, 3 Apr 2012 20:38:57 +0000 (13:38 -0700)]
[release-branch.go1] A+C: add Michael Lewis (Individual CLA)

««« backport 3ee4c6bdf311
A+C: add Michael Lewis (Individual CLA)

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5970077
»»»

13 years ago[release-branch.go1] encoding/base64: fix panic when input len is not a multiple...
Dave Cheney [Tue, 3 Apr 2012 02:14:02 +0000 (12:14 +1000)]
[release-branch.go1] encoding/base64: fix panic when input len is not a multiple of 4

««« backport 95e67cc5fa08
encoding/base64: fix panic when input len is not a multiple of 4

Fixes #3442.

R=for.go.yong, dsymonds, sougou, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/5975052

»»»

13 years ago[release-branch.go1] text/template: pipelined arg was not typechecked
Rob Pike [Tue, 3 Apr 2012 01:44:52 +0000 (11:44 +1000)]
[release-branch.go1] text/template: pipelined arg was not typechecked

««« backport c007925a75c6
text/template: pipelined arg was not typechecked
Without this fix, an erroneous template causes a panic; should be caught safely.
The bug did not affect correct templates.

Fixes #3267.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5900065
»»»

13 years ago[release-branch.go1] time: fix handling of locations with no dst on windows
Alex Brainman [Tue, 3 Apr 2012 01:39:38 +0000 (11:39 +1000)]
[release-branch.go1] time: fix handling of locations with no dst on windows

««« backport 701af83040ac
time: fix handling of locations with no dst on windows

Fixes #3437.

R=rsc
CC=golang-dev
https://golang.org/cl/5967063
»»»

13 years ago[release-branch.go1] doc/code.html: change 'affect' to 'effect'.
Peter Weinberger [Mon, 2 Apr 2012 17:05:09 +0000 (13:05 -0400)]
[release-branch.go1] doc/code.html: change 'affect' to 'effect'.

««« backport 0dc51d66e03d
doc/code.html: change 'affect' to 'effect'.
Fixes #3429.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5966047
»»»

13 years ago[release-branch.go1] C: add Peter Weinberger (Google CLA)
Russ Cox [Mon, 2 Apr 2012 16:59:02 +0000 (12:59 -0400)]
[release-branch.go1] C: add Peter Weinberger (Google CLA)

««« backport b9b0c8d8b5ff
C: add Peter Weinberger (Google CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5976059
»»»

13 years ago[release-branch.go1] cmd/dist, sudo.bash: don't mention sudo.bash if cov or prof...
Shenghou Ma [Mon, 2 Apr 2012 14:33:38 +0000 (22:33 +0800)]
[release-branch.go1] cmd/dist, sudo.bash: don't mention sudo.bash if cov or prof is not present

««« backport e757e2af45ec
cmd/dist, sudo.bash: don't mention sudo.bash if cov or prof is not present
        Fixes #3422.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5967057
»»»

13 years ago[release-branch.go1] doc/effective_go.html: Add missing '...' for fmt.Sprintf()
Aaron Kemp [Sat, 31 Mar 2012 00:51:24 +0000 (17:51 -0700)]
[release-branch.go1] doc/effective_go.html: Add missing '...' for fmt.Sprintf()

««« backport 8434de733c20
doc/effective_go.html: Add missing '...' for fmt.Sprintf()

The '...' was missing on a call to fmt.Sprintf() which would result in
the slice being printed instead of the correct result.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5967051

»»»

13 years ago[release-branch.go1] A+C: added Aaron Kemp (Corporate CLA)
Robert Griesemer [Sat, 31 Mar 2012 00:51:07 +0000 (17:51 -0700)]
[release-branch.go1] A+C: added Aaron Kemp (Corporate CLA)

««« backport 347d126983f7
A+C: added Aaron Kemp (Corporate CLA)

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5966054
»»»

13 years ago[release-branch.go1] doc/codewalk/markov: fix syntax and broken link
Shenghou Ma [Fri, 30 Mar 2012 07:00:23 +0000 (15:00 +0800)]
[release-branch.go1] doc/codewalk/markov: fix syntax and broken link

««« backport fd037b466111
doc/codewalk/markov: fix syntax and broken link
        Part of issue 3424.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5955050
»»»

13 years ago[release-branch.go1] doc/code.html: fix broken dashboard link
Shenghou Ma [Fri, 30 Mar 2012 06:07:40 +0000 (14:07 +0800)]
[release-branch.go1] doc/code.html: fix broken dashboard link

««« backport feb586ac4860
doc/code.html: fix broken dashboard link
        Fixes #3420.
        Part of issue 3424.

R=golang-dev, cldorian, adg, r
CC=golang-dev
https://golang.org/cl/5958046
»»»

13 years ago[release-branch.go1] doc/go1: minor fixes
Shenghou Ma [Fri, 30 Mar 2012 06:06:12 +0000 (14:06 +0800)]
[release-branch.go1] doc/go1: minor fixes

««« backport b8f8e3b892dc
doc/go1: minor fixes
        Fixes #3427.
        Part of issue 3424.

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5959045
»»»

13 years ago[release-branch.go1] doc/go_spec: fix broken link
Shenghou Ma [Fri, 30 Mar 2012 06:04:03 +0000 (14:04 +0800)]
[release-branch.go1] doc/go_spec: fix broken link

««« backport 719d3065511a
doc/go_spec: fix broken link
        Part of issue 3424

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5955049
»»»

13 years ago[release-branch.go1] cmd/go: update docs about tags for get command
Rob Pike [Fri, 30 Mar 2012 02:07:10 +0000 (13:07 +1100)]
[release-branch.go1] cmd/go: update docs about tags for get command

««« backport 79e6b4602f26
cmd/go: update docs about tags for get command
"go1" dominates. Delete the text about weekly and release.
We can revisit this once the situation changes.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5969043
»»»

13 years agogo1 go1
Andrew Gerrand [Wed, 28 Mar 2012 12:41:59 +0000 (23:41 +1100)]
go1

13 years agoremove non-go1 commands and packages
Andrew Gerrand [Wed, 28 Mar 2012 12:41:38 +0000 (23:41 +1100)]
remove non-go1 commands and packages

13 years agoweekly.2012-03-27 weekly weekly.2012-03-27
Andrew Gerrand [Wed, 28 Mar 2012 12:41:03 +0000 (23:41 +1100)]
weekly.2012-03-27

13 years agodoc: added The Go image package article
Francisco Souza [Wed, 28 Mar 2012 03:20:51 +0000 (14:20 +1100)]
doc: added The Go image package article

Orignally published on The Go Programming Language, September 21, 2011.

http://blog.golang.org/2011/09/go-image-package.html

Update #2547

R=adg, nigeltao
CC=golang-dev
https://golang.org/cl/5933049

13 years agomisc/dist: it sucks hwhen you forget to fix typos
Andrew Gerrand [Wed, 28 Mar 2012 01:45:39 +0000 (12:45 +1100)]
misc/dist: it sucks hwhen you forget to fix typos

R=golang-dev
CC=golang-dev
https://golang.org/cl/5937049

13 years agopath/filepath: correct comment in EvalSymlinks
Alex Brainman [Wed, 28 Mar 2012 01:27:36 +0000 (12:27 +1100)]
path/filepath: correct comment in EvalSymlinks

R=golang-dev, r
CC=golang-dev, hcwfrichter
https://golang.org/cl/5934046

13 years agomisc/dist: support upload only (no build)
Andrew Gerrand [Wed, 28 Mar 2012 01:24:43 +0000 (12:24 +1100)]
misc/dist: support upload only (no build)

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5940050

13 years agodoc: link to Go Project Dashboard from package list
Andrew Gerrand [Wed, 28 Mar 2012 00:38:34 +0000 (11:38 +1100)]
doc: link to Go Project Dashboard from package list

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5937048

13 years agocmd/godoc: use virtual filesystem to implement -templates flag
Andrew Gerrand [Tue, 27 Mar 2012 22:13:48 +0000 (09:13 +1100)]
cmd/godoc: use virtual filesystem to implement -templates flag

R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/5921045

13 years agoruntime: work around false negative in deadlock detection
Russ Cox [Tue, 27 Mar 2012 16:22:19 +0000 (12:22 -0400)]
runtime: work around false negative in deadlock detection

Not a complete fix for issue 3342, but fixes the trivial case.
There may still be a race in the instants before and after
a scavenger-induced garbage collection.

Intended to be "obviously safe": a call to runtime·gosched
before main.main is no different than a call to runtime.Gosched
at the beginning of main.main, and it is (or had better be)
safe to call runtime.Gosched at any point during main.

Update #3342.

R=iant
CC=golang-dev
https://golang.org/cl/5919052

13 years agocmd/go: respect $GOBIN always
Russ Cox [Tue, 27 Mar 2012 15:57:39 +0000 (11:57 -0400)]
cmd/go: respect $GOBIN always

Another attempt at https://golang.org/cl/5754088.

Before, we only consulted $GOBIN for source code
found in $GOROOT, but that's confusing to explain
and less useful.  The new behavior lets users set
GOBIN=$HOME/bin and have all go-compiled binaries
installed there.

Tested a few cases in test.bash.

Ran all.bash with and without $GOBIN and it works.
Even so, I expect it to break the builders,
like it did last time, we can debug from there.

Fixes #3269 (again).
Fixes #3396.
Fixes #3397.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5927051

13 years agogo/build: fix import check
Russ Cox [Tue, 27 Mar 2012 15:16:10 +0000 (11:16 -0400)]
go/build: fix import check

When we find a package in DIR/src/foo, we only let it
be known as foo if there is no other foo in an earlier
GOPATH directory or the GOROOT directory.
The GOROOT check was looking in GOROOT/src/foo
instead of GOROOT/src/pkg/foo, which meant that
the import paths "lib9", "libbio", "libmach", and so
on were unavailable, and the import paths "math",
"errors", and so on were available.  Correct this.

Fixes #3390.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/5927050

13 years agocmd/go: fix two bugs
Russ Cox [Tue, 27 Mar 2012 14:41:44 +0000 (10:41 -0400)]
cmd/go: fix two bugs

Issue 3207 was caused by setting GOPATH=GOROOT.
This is a common mistake, so diagnose it at command start
and also correct the bug that it caused in get (downloading
to GOROOT/src/foo instead of GOROOT/src/pkg/foo).

Issue 3268 was caused by recognizing 'packages' that
had installed binaries but no source.  This behavior is not
documented and causes trouble, so remove it.  We can
revisit the concept of binary-only packages after Go 1.

Fixes #3207.
Fixes #3268.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5930044

13 years agodoc: use relative links in Laws of Reflection article
Andrew Gerrand [Tue, 27 Mar 2012 09:53:16 +0000 (20:53 +1100)]
doc: use relative links in Laws of Reflection article

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5924050

13 years agodoc: use relative links in draw package article
Andrew Gerrand [Tue, 27 Mar 2012 09:52:48 +0000 (20:52 +1100)]
doc: use relative links in draw package article

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5924051

13 years agodoc: update wiki tutorial templates, and template discussion
Andrew Gerrand [Tue, 27 Mar 2012 05:07:46 +0000 (16:07 +1100)]
doc: update wiki tutorial templates, and template discussion

Fixes #3384.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5915044

13 years agopath/filepath: use windows GetShortPathName api to force GetLongPathName to do its...
Alex Brainman [Tue, 27 Mar 2012 04:53:08 +0000 (15:53 +1100)]
path/filepath: use windows GetShortPathName api to force GetLongPathName to do its work

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5928043

13 years agocmd/go: update for go1 tag format
Russ Cox [Tue, 27 Mar 2012 04:17:50 +0000 (00:17 -0400)]
cmd/go: update for go1 tag format

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5919048

13 years agocmd/dist: fix detection of go1 version
Russ Cox [Tue, 27 Mar 2012 04:17:35 +0000 (00:17 -0400)]
cmd/dist: fix detection of go1 version

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5924044

13 years agodoc: update licensing text one more time
Andrew Gerrand [Tue, 27 Mar 2012 04:09:13 +0000 (15:09 +1100)]
doc: update licensing text one more time

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5916046

13 years agonet: ignore ECONNABORTED from syscall.Accept
Devon H. O'Dell [Tue, 27 Mar 2012 04:06:14 +0000 (00:06 -0400)]
net: ignore ECONNABORTED from syscall.Accept

Fixes #3395.

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5905063

13 years agoundo CL 5844051 / 5d0322034aa8
Mikio Hara [Tue, 27 Mar 2012 04:05:17 +0000 (13:05 +0900)]
undo CL 5844051 / 5d0322034aa8

Breaks closure test when GOMAXPROCS=2 or more.

««« original CL description
runtime: restore deadlock detection in the simplest case.

Fixes #3342.

R=iant, r, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/5844051

»»»

R=rsc
CC=golang-dev
https://golang.org/cl/5924045

13 years agocmd/go: copy tag_test.go from goinstall
Russ Cox [Tue, 27 Mar 2012 03:44:30 +0000 (23:44 -0400)]
cmd/go: copy tag_test.go from goinstall

hg cat -r 11846 src/cmd/goinstall/tag_test.go >tag_test.go
No changes.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5919047

13 years agomisc/emacs: fix overindentation caused by mis-parsing lines ending with special chars
Ben Fried [Tue, 27 Mar 2012 03:26:39 +0000 (23:26 -0400)]
misc/emacs: fix overindentation caused by mis-parsing lines ending with special chars

Fixes #3313

go-mode-backward-skip-comments is probably due for a more ambitious refactoring --- it repeats guard conditions after every nearly every movement of point.

R=sameer, r
CC=golang-dev
https://golang.org/cl/5844063

13 years agoC: add Ben Fried, Googler
Rob Pike [Tue, 27 Mar 2012 03:26:28 +0000 (23:26 -0400)]
C: add Ben Fried, Googler

R=golang-dev, dsymonds
CC=ben.fried, golang-dev
https://golang.org/cl/5869043

13 years agoruntime: restore deadlock detection in the simplest case.
Rémy Oudompheng [Tue, 27 Mar 2012 03:06:20 +0000 (23:06 -0400)]
runtime: restore deadlock detection in the simplest case.

Fixes #3342.

R=iant, r, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/5844051

13 years agodoc: fix concurrency patterns rawhtml generation
Francisco Souza [Tue, 27 Mar 2012 03:03:46 +0000 (14:03 +1100)]
doc: fix concurrency patterns rawhtml generation

The Makefile target was broken due to the rename of the HTML file.

R=golang-dev
CC=golang-dev
https://golang.org/cl/5918045

13 years agodoc: move /ref/cmd to /doc/cmd
Andrew Gerrand [Tue, 27 Mar 2012 02:46:16 +0000 (13:46 +1100)]
doc: move /ref/cmd to /doc/cmd

Fixes #3400.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5926043

13 years agodoc: add JSON-RPC: a tale of interfaces article
Francisco Souza [Tue, 27 Mar 2012 02:35:40 +0000 (13:35 +1100)]
doc: add JSON-RPC: a tale of interfaces article

Originally published on The Go Programming Language Blog, Abril 27, 2010.

http://blog.golang.org/2010/04/json-rpc-tale-of-interfaces.html

R=adg, r
CC=golang-dev
https://golang.org/cl/5920044

13 years agodoc: update footer text
Andrew Gerrand [Tue, 27 Mar 2012 02:35:01 +0000 (13:35 +1100)]
doc: update footer text

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5920043

13 years agopath/filepath: convert drive letter to upper case in windows EvalSymlinks
Alex Brainman [Tue, 27 Mar 2012 01:56:56 +0000 (12:56 +1100)]
path/filepath: convert drive letter to upper case in windows EvalSymlinks

Fixes #3347.

R=golang-dev, aram, r, rsc
CC=golang-dev
https://golang.org/cl/5918043

13 years agodoc: remove cov and prof from /ref/cmd
Andrew Gerrand [Tue, 27 Mar 2012 01:46:46 +0000 (12:46 +1100)]
doc: remove cov and prof from /ref/cmd

Update #3400

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5921044

13 years agocmd/godoc: canonicalize custom path redirects
Andrew Gerrand [Tue, 27 Mar 2012 01:44:17 +0000 (12:44 +1100)]
cmd/godoc: canonicalize custom path redirects

For example, /ref and /doc/reference.html now both redirect to /ref/.

Fixes #3401.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5916044

13 years agodoc: move gdb doc back to /doc/ and de-emphasize on references page
Andrew Gerrand [Tue, 27 Mar 2012 00:42:01 +0000 (11:42 +1100)]
doc: move gdb doc back to /doc/ and de-emphasize on references page

Fixes #3399.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5919044

13 years agodoc: add doc/articles/index.html
Andrew Gerrand [Tue, 27 Mar 2012 00:40:17 +0000 (11:40 +1100)]
doc: add doc/articles/index.html

Fixes #3402.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5923043

13 years agodoc: describe the Windows MSI installer as experimental
Andrew Gerrand [Tue, 27 Mar 2012 00:19:30 +0000 (11:19 +1100)]
doc: describe the Windows MSI installer as experimental

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5921043

13 years agomisc/goplay: fix error on IE8.
Yasuhiro Matsumoto [Tue, 27 Mar 2012 00:16:29 +0000 (11:16 +1100)]
misc/goplay: fix error on IE8.
        use cancelBubble=true instead of preventDefault().

R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/5888043

13 years agomisc/dist: don't ship codereview either
Andrew Gerrand [Mon, 26 Mar 2012 23:38:10 +0000 (10:38 +1100)]
misc/dist: don't ship codereview either

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5917043

13 years agocmd/godoc: fix app engine version
Andrew Gerrand [Mon, 26 Mar 2012 23:10:25 +0000 (10:10 +1100)]
cmd/godoc: fix app engine version

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5902060

13 years agomisc/dist: don't include old python dashboard in releases
Andrew Gerrand [Mon, 26 Mar 2012 22:59:20 +0000 (09:59 +1100)]
misc/dist: don't include old python dashboard in releases

I'd prefer not to ship a bunch of bad Python code to everyone who uses
Go 1.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5915043

13 years agodoc: add Terms of Service
Andrew Gerrand [Mon, 26 Mar 2012 22:27:43 +0000 (09:27 +1100)]
doc: add Terms of Service

R=r
CC=golang-dev
https://golang.org/cl/5913044

13 years agoexp/types: generalized GCImporter API.
Robert Griesemer [Mon, 26 Mar 2012 18:26:05 +0000 (11:26 -0700)]
exp/types: generalized GCImporter API.

- Renamed ExportData -> FindGcExportData
  and base it on an a bufio.Reader rather
  than a filename so it can be used in
  environments where object files are
  stored elsewhere.

- Factor former GcImporter into GcImportData
  and GcImport. Implementations with different
  storage locations for object files can build
  a customized GcImport using GcImportData.

This is pkg/exp only - no impact on Go 1.

R=golang-dev, lvd, rsc
CC=golang-dev
https://golang.org/cl/5574069

13 years agodoc: Change id of footer
Benny Siegert [Mon, 26 Mar 2012 16:12:15 +0000 (09:12 -0700)]
doc: Change id of footer

The heading "Copyright" uses id="copyright" as the anchor name.
However, there is also a <div id="copyright"> at the bottom.
Using the same ID value twice in the same file is illegal
(http://www.w3.org/TR/html401/struct/links.html#h-12.2.3).

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5909045

13 years agocmd/go: explain versions better
Rob Pike [Mon, 26 Mar 2012 06:47:39 +0000 (17:47 +1100)]
cmd/go: explain versions better
Summarize the desiderata for selecting versions of remote packages to get.
Fixes #3394.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5902058

13 years agomisc/dist: add -wxs flag to provide custom installer.wxs file
Andrew Gerrand [Mon, 26 Mar 2012 06:32:20 +0000 (17:32 +1100)]
misc/dist: add -wxs flag to provide custom installer.wxs file

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5908055

13 years agorun.bash: set -e in new codewalk block
Rob Pike [Mon, 26 Mar 2012 06:03:04 +0000 (17:03 +1100)]
run.bash: set -e in new codewalk block
Otherwise we won't fail if something goes wrong.
This shell programming stuff is tricky.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5905062

13 years agowindows: install fixes
Joe Poirier [Mon, 26 Mar 2012 05:48:20 +0000 (16:48 +1100)]
windows: install fixes

* set default installation drive to C:\
* remove Win64 component property

R=golang-dev, bradfitz, aram
CC=golang-dev
https://golang.org/cl/5901044

13 years agorun.bash: compile the codewalks
Rob Pike [Mon, 26 Mar 2012 05:08:21 +0000 (16:08 +1100)]
run.bash: compile the codewalks
They could be tested but that requires more than seems wise right now.

Update #2648.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5908054

13 years agogodoc: make 'Overview' section collapsable
Andrew Gerrand [Mon, 26 Mar 2012 03:10:27 +0000 (14:10 +1100)]
godoc: make 'Overview' section collapsable

This makes packages with lengthly package comments easier to browse.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5901055

13 years agodoc: make installation instructions more skim-friendly
Andrew Gerrand [Mon, 26 Mar 2012 02:59:30 +0000 (13:59 +1100)]
doc: make installation instructions more skim-friendly

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5908052

13 years agocmd/go: allow underscores in tool name
Shenghou Ma [Mon, 26 Mar 2012 02:01:17 +0000 (10:01 +0800)]
cmd/go: allow underscores in tool name
        Otherwise we can't invoke go_bootstrap directly.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5900061

13 years agogo/build: cgoEnabled is not known to cmd/dist anymore
Shenghou Ma [Mon, 26 Mar 2012 02:00:06 +0000 (10:00 +0800)]
go/build: cgoEnabled is not known to cmd/dist anymore

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5901051

13 years agocmd/go: add missing error check
Evan Shaw [Mon, 26 Mar 2012 01:52:29 +0000 (09:52 +0800)]
cmd/go: add missing error check

R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5874055

13 years agodoc/reference-cmd: use vet as example, not fmt
Rob Pike [Sun, 25 Mar 2012 00:35:16 +0000 (11:35 +1100)]
doc/reference-cmd: use vet as example, not fmt
"go tool fmt" doesn't work, "go tool vet" does.

R=golang-dev, rogpeppe, r, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5900049

13 years agoeffective_go: cleanups and fixes
Rob Pike [Sun, 25 Mar 2012 00:34:51 +0000 (11:34 +1100)]
effective_go: cleanups and fixes
Also explain the situation with recursive String methods more accurately,
and clean up the code now that the fmt package is more careful.

R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5907047

13 years agodocs/articles/wiki: minor fixes
Rob Pike [Fri, 23 Mar 2012 23:14:25 +0000 (10:14 +1100)]
docs/articles/wiki: minor fixes

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5900046

13 years agodoc/go1: add mention of packaged releases
Rob Pike [Fri, 23 Mar 2012 23:14:07 +0000 (10:14 +1100)]
doc/go1: add mention of packaged releases
Fixes #3245.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5905045

13 years agodoc/reference-cmd.html: new introduction
Rob Pike [Fri, 23 Mar 2012 22:29:08 +0000 (09:29 +1100)]
doc/reference-cmd.html: new introduction
Compare and explain go, go cmd, and go tool cmd.
The situation is not concisely explained elsewhere in the main docs.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5906043

13 years agoos: add missing byte to FileMode buffer
Stefan Nilsson [Fri, 23 Mar 2012 21:16:57 +0000 (08:16 +1100)]
os: add missing byte to FileMode buffer

32 bytes is enough for all FileMode bits.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5853044

13 years agocodewalk/sharemem.xml: fix references to files
Rob Pike [Fri, 23 Mar 2012 21:12:52 +0000 (08:12 +1100)]
codewalk/sharemem.xml: fix references to files

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5877064

13 years agotext/template: fix typo in package comment
Robert Griesemer [Fri, 23 Mar 2012 18:31:29 +0000 (11:31 -0700)]
text/template: fix typo in package comment

Fixes #3383.

R=iant, bradfitz
CC=golang-dev
https://golang.org/cl/5891045

13 years agodoc/reference-cmd: doc/fmt can be invoked by cmd/go but also available as independent...
Shenghou Ma [Fri, 23 Mar 2012 15:21:52 +0000 (23:21 +0800)]
doc/reference-cmd: doc/fmt can be invoked by cmd/go but also available as independent command

R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/5877050

13 years agocrypto/tls: don't select ECC ciphersuites with no mutual curve.
Adam Langley [Fri, 23 Mar 2012 14:48:51 +0000 (10:48 -0400)]
crypto/tls: don't select ECC ciphersuites with no mutual curve.

The existing code that tried to prevent ECC ciphersuites from being
selected when there were no mutual curves still left |suite| set.
This lead to a panic on a nil pointer when there were no acceptable
ciphersuites at all.

Thanks to George Kadianakis for pointing it out.

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5857043

13 years agodoc/articles/defer_panic_recover.html: minor tweaks
Rob Pike [Fri, 23 Mar 2012 06:40:27 +0000 (17:40 +1100)]
doc/articles/defer_panic_recover.html: minor tweaks
Delete () from function names and change the reference to some
functions to the correct term, methods.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5874063