]> Cypherpunks repositories - gostls13.git/log
gostls13.git
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

13 years agodoc/articles/image_draw.html: fix circle example
Rob Pike [Fri, 23 Mar 2012 06:02:21 +0000 (17:02 +1100)]
doc/articles/image_draw.html: fix circle example
It was showing the same snippet twice instead of the type definition and snippet.

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

13 years agopath/filepath: windows drive letter cannot be a digit
Alex Brainman [Fri, 23 Mar 2012 04:57:19 +0000 (15:57 +1100)]
path/filepath: windows drive letter cannot be a digit

R=golang-dev, r
CC=golang-dev, mattn.jp
https://golang.org/cl/5885056

13 years agotag weekly.2012-03-22
Andrew Gerrand [Fri, 23 Mar 2012 01:45:58 +0000 (12:45 +1100)]
tag weekly.2012-03-22

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

13 years agomisc/dist: make godoc shortcut work weekly.2012-03-22
Andrew Gerrand [Fri, 23 Mar 2012 01:44:33 +0000 (12:44 +1100)]
misc/dist: make godoc shortcut work

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

13 years agodoc/godoc.js: fix error on IE8.
Yasuhiro Matsumoto [Fri, 23 Mar 2012 01:23:53 +0000 (12:23 +1100)]
doc/godoc.js: fix error on IE8.
        * implement simple getElementsByClassName for IE8.
        * remove some lint warnings.

Fixes #3318.

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

13 years agoweekly.2012-03-22
Andrew Gerrand [Fri, 23 Mar 2012 00:56:54 +0000 (11:56 +1100)]
weekly.2012-03-22

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

13 years agomisc/dist: updates to installer script
Andrew Gerrand [Fri, 23 Mar 2012 00:48:54 +0000 (11:48 +1100)]
misc/dist: updates to installer script

Now sets GOROOT.

Fixes #3287.
Fixes #3361.

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

13 years agodoc/articles/c_go_cgo.html: correct "C" comment to mention #cgo
Ian Lance Taylor [Fri, 23 Mar 2012 00:44:28 +0000 (17:44 -0700)]
doc/articles/c_go_cgo.html: correct "C" comment to mention #cgo

Also fix invalid apostrophe characters.

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

13 years agodoc/articles: rename concurrency patterns article
Rob Pike [Thu, 22 Mar 2012 20:51:16 +0000 (07:51 +1100)]
doc/articles: rename concurrency patterns article
The old name, automatically generated, was ludicrously verbose.
Also clean up an example to use time.Second.

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

13 years agotest: fix run.bash by spelling out the commands to use for bug424.go
Ian Lance Taylor [Thu, 22 Mar 2012 19:48:41 +0000 (12:48 -0700)]
test: fix run.bash by spelling out the commands to use for bug424.go

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

13 years agocmd/gc: fix comment typo, assignment spacing
Ian Lance Taylor [Thu, 22 Mar 2012 18:40:12 +0000 (11:40 -0700)]
cmd/gc: fix comment typo, assignment spacing

R=bradfitz, gri, lvd
CC=golang-dev
https://golang.org/cl/5874053

13 years agocmd/gc: when expanding append inline, preserve arguments
Ian Lance Taylor [Thu, 22 Mar 2012 16:44:31 +0000 (09:44 -0700)]
cmd/gc: when expanding append inline, preserve arguments

Fixes #3369.

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

13 years agosort: add time complexity to doc
Stefan Nilsson [Thu, 22 Mar 2012 16:27:02 +0000 (09:27 -0700)]
sort: add time complexity to doc

Let's tell the world that Go's sort is O(n log n).
Surely this is a feature we intend to keep.

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

13 years agodoc/articles/gobs_of_data.html: delete extra word
Rob Pike [Thu, 22 Mar 2012 08:20:03 +0000 (19:20 +1100)]
doc/articles/gobs_of_data.html: delete extra word
Putt putt putt our way towards felicity.

R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/5874048

13 years agodoc: add JSON and Go article
Francisco Souza [Thu, 22 Mar 2012 07:25:40 +0000 (18:25 +1100)]
doc: add JSON and Go article

Originally published on The Go Programming Language Blog, January 25, 2011.

http://blog.golang.org/2011/01/json-and-go.html

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

13 years agodoc/articles/go_command.html: nits
Rob Pike [Thu, 22 Mar 2012 06:59:06 +0000 (17:59 +1100)]
doc/articles/go_command.html: nits
Fix some English mistakes and minor inaccuracies.

R=golang-dev, jsing
CC=golang-dev
https://golang.org/cl/5885046

13 years agoflag: add examples
Rob Pike [Thu, 22 Mar 2012 00:15:43 +0000 (11:15 +1100)]
flag: add examples

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

13 years agodoc: fix typo in The Laws of Reflection article
Francisco Souza [Wed, 21 Mar 2012 23:42:04 +0000 (16:42 -0700)]
doc: fix typo in The Laws of Reflection article

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

13 years agoexp/norm/normalize.go: fix typo
Robert Griesemer [Wed, 21 Mar 2012 21:55:05 +0000 (14:55 -0700)]
exp/norm/normalize.go: fix typo

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

13 years agodoc/effective_go.html: undo local font change
Robert Griesemer [Wed, 21 Mar 2012 21:29:16 +0000 (14:29 -0700)]
doc/effective_go.html: undo local font change

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

13 years agogo/build: clarify why we exclude files starting with '_' or '.'
Shenghou Ma [Wed, 21 Mar 2012 19:18:47 +0000 (03:18 +0800)]
go/build: clarify why we exclude files starting with '_' or '.'

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

13 years agogodoc: use shorter titles for tabs
Robert Griesemer [Wed, 21 Mar 2012 18:29:30 +0000 (11:29 -0700)]
godoc: use shorter titles for tabs

In a browser with many open tabs, the tab titles become short
and uninformative because they all start with the same prefix
("Package ", "Directory ", etc.).

Permit use of shorter tab titles that start with the relevant
information first.

Fixes #3365.

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

13 years agotest: use testlib in a few more cases
Shenghou Ma [Wed, 21 Mar 2012 18:14:44 +0000 (02:14 +0800)]
test: use testlib in a few more cases
        Introduce a new skip cmd.

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

13 years agocmd/cgo: fix handling of errno for gccgo
Ian Lance Taylor [Wed, 21 Mar 2012 17:38:58 +0000 (10:38 -0700)]
cmd/cgo: fix handling of errno for gccgo

Fixes #3332.

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

13 years agodoc/effective_go: minor corrections
Shenghou Ma [Wed, 21 Mar 2012 16:33:55 +0000 (09:33 -0700)]
doc/effective_go: minor corrections

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

13 years agobuild: lengthen timeout for the lengthy runtime test
Shenghou Ma [Wed, 21 Mar 2012 08:19:37 +0000 (16:19 +0800)]
build: lengthen timeout for the lengthy runtime test
        To fix build on (overheated) Linux/ARM builder.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/5865051

13 years agodoc: remove reference to deleted os.ENOSPC
Brad Fitzpatrick [Tue, 20 Mar 2012 23:50:51 +0000 (16:50 -0700)]
doc: remove reference to deleted os.ENOSPC

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

13 years agohtml/template: fix typo and make grammar consistent in comments.
David Symonds [Tue, 20 Mar 2012 23:10:44 +0000 (10:10 +1100)]
html/template: fix typo and make grammar consistent in comments.

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

13 years agosort: fix computation of maxDepth to avoid infinite loop
Stefan Nilsson [Tue, 20 Mar 2012 21:23:12 +0000 (14:23 -0700)]
sort: fix computation of maxDepth to avoid infinite loop

The current computation loops indefinitely if n > 1<<30 (for 32-bit ints).

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

13 years agocmd/go: use .o, not .{5,6,8}, for gccgo created object files
Ian Lance Taylor [Tue, 20 Mar 2012 21:17:06 +0000 (14:17 -0700)]
cmd/go: use .o, not .{5,6,8}, for gccgo created object files

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

13 years agodoc: general update of gccgo_install
Ian Lance Taylor [Tue, 20 Mar 2012 21:16:34 +0000 (14:16 -0700)]
doc: general update of gccgo_install

Fixes #3325.

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

13 years agosort: document two undocumented functions
Brad Fitzpatrick [Tue, 20 Mar 2012 18:40:41 +0000 (11:40 -0700)]
sort: document two undocumented functions

They looked out of place in godoc.
Includes documenting sort stability.

Fixes #3356

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

13 years agomisc/cgo/gmp: update for Go 1
Shenghou Ma [Tue, 20 Mar 2012 16:51:48 +0000 (00:51 +0800)]
misc/cgo/gmp: update for Go 1
1. make the program go buildable
2. update os.EINVAL and runtime.Cgocalls()
3. wrap mpz_div_2exp() and mpz_mul_2exp to support both
   pre-5.0 and post-5.0 gmp (we really have no reason to
   restrict ourselves to gmp 5.0+)

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

13 years agoruntime: remove unused goc2c.c
Shenghou Ma [Tue, 20 Mar 2012 16:49:45 +0000 (00:49 +0800)]
runtime: remove unused goc2c.c
        Its functionality has been moved into cmd/dist.

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

13 years agobuild: unset GOPATH before tests
Shenghou Ma [Tue, 20 Mar 2012 16:47:27 +0000 (00:47 +0800)]
build: unset GOPATH before tests
This is because we disallow local import for non-local packages, if
GOROOT happens to be under one of GOPATH, then some tests will fail
to build.
Fixes #3337.

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

13 years agodoc/debugging_with_gdb: format & content update
Shenghou Ma [Tue, 20 Mar 2012 16:42:53 +0000 (00:42 +0800)]
doc/debugging_with_gdb: format & content update

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

13 years agorun.bat: disable test in test\bench\go1 to fix build
Alex Brainman [Tue, 20 Mar 2012 03:59:51 +0000 (14:59 +1100)]
run.bat: disable test in test\bench\go1 to fix build

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

13 years agoapi: update go1.txt after adding functions to html/template
Rob Pike [Tue, 20 Mar 2012 03:53:18 +0000 (14:53 +1100)]
api: update go1.txt after adding functions to html/template
Fixes build, teaches lesson.

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

13 years agohtml/template: add Templates and *Escape functions
Rob Pike [Tue, 20 Mar 2012 03:38:07 +0000 (14:38 +1100)]
html/template: add Templates and *Escape functions
to bring it in line with text/template's interface.
Fixes #3296.

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

13 years agocmd/godoc: inform users that the playground doesn't work via local godoc
Andrew Gerrand [Tue, 20 Mar 2012 03:11:38 +0000 (14:11 +1100)]
cmd/godoc: inform users that the playground doesn't work via local godoc

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

13 years agodoc: remove defunct playground.html
Andrew Gerrand [Tue, 20 Mar 2012 03:11:17 +0000 (14:11 +1100)]
doc: remove defunct playground.html

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

13 years agobuild: do more during windows build
Alex Brainman [Tue, 20 Mar 2012 03:04:20 +0000 (14:04 +1100)]
build: do more during windows build

- use GO_GCFLAGS and GO_LDFLAGS if supplied
- build misc\dashboard\builder and misc\goplay
- run tests in test\bench\go1
- check api compatibility

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

13 years agodoc: replace mentions of 6g with gc or the go command
Andrew Gerrand [Tue, 20 Mar 2012 02:50:05 +0000 (13:50 +1100)]
doc: replace mentions of 6g with gc or the go command

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

13 years agomisc/dashboard: remove remnants of package dashboard
Andrew Gerrand [Tue, 20 Mar 2012 02:35:31 +0000 (13:35 +1100)]
misc/dashboard: remove remnants of package dashboard

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

13 years agonet: drop unnecessary type assertions and fix leak in test
Mikio Hara [Tue, 20 Mar 2012 01:57:54 +0000 (10:57 +0900)]
net: drop unnecessary type assertions and fix leak in test

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

13 years agogc: fix struct and array comparisons for new bool rules
Anthony Martin [Mon, 19 Mar 2012 22:57:28 +0000 (15:57 -0700)]
gc: fix struct and array comparisons for new bool rules

The two optimizations for small structs and arrays
were missing the implicit cast from ideal bool.

Fixes #3351.

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

13 years agocrypto/tls: always send a Certificate message if one was requested.
Adam Langley [Mon, 19 Mar 2012 16:34:35 +0000 (12:34 -0400)]
crypto/tls: always send a Certificate message if one was requested.

If a CertificateRequest is received we have to reply with a
Certificate message, even if we don't have a certificate to offer.

Fixes #3339.

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

13 years agodoc: update format for "C? Go? Cgo!" article
Shenghou Ma [Mon, 19 Mar 2012 14:54:06 +0000 (22:54 +0800)]
doc: update format for "C? Go? Cgo!" article

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