]>
Cypherpunks repositories - gostls13.git/log
Volker Dobler [Thu, 8 Mar 2012 11:22:36 +0000 (22:22 +1100)]
fmt: minor tweak of package doc to show headings in godoc
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5781052
Andrew Gerrand [Thu, 8 Mar 2012 10:54:46 +0000 (21:54 +1100)]
misc/dashboard: remove obsolete package builder code
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
5790045
Andrew Gerrand [Thu, 8 Mar 2012 06:31:20 +0000 (17:31 +1100)]
doc: drop google +1 button from the home page
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5784048
Robert Griesemer [Thu, 8 Mar 2012 06:17:40 +0000 (22:17 -0800)]
go_spec: no known implementation differences anymore
R=r, rsc, iant, ken
CC=golang-dev
https://golang.org/cl/
5781048
Rob Pike [Thu, 8 Mar 2012 06:15:23 +0000 (17:15 +1100)]
doc/go1: template packages have changed since r60
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5787049
Alex Brainman [Thu, 8 Mar 2012 06:06:53 +0000 (17:06 +1100)]
go/build: do not parse .syso files
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5786049
Robert Griesemer [Thu, 8 Mar 2012 05:28:50 +0000 (21:28 -0800)]
go/parser: avoid endless loop in case of internal error
Factored the error synchronization code into two functions
syncStmt and syncDecl. Because they may return w/o advancing
the scanner, there is potential for endless loops across
multiple parse functions; typically caused by an incorrect
token list in these functions (e.g., adding token.ELSE to
syncStmt will cause the parser to go into an endless loop
for test/syntax/semi7.go without this mechanism). This would
indicate a compiler bug, exposed only in an error situation
for very specific source files. Added a mechanism to force
scanner advance if an endless loop is detected. As a result,
error recovery will be less good in those cases, but the parser
reported a source error already and at least doesn't get stuck.
R=rsc, rsc
CC=golang-dev
https://golang.org/cl/
5784046
Andrew Gerrand [Thu, 8 Mar 2012 05:10:55 +0000 (16:10 +1100)]
doc: link to go1 and go1compat from docs index
Fixes #3239.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5782049
Andrew Gerrand [Thu, 8 Mar 2012 05:09:49 +0000 (16:09 +1100)]
doc: add go command notes to the Go 1 doc
Fixes #2912.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5783048
Russ Cox [Thu, 8 Mar 2012 03:43:28 +0000 (22:43 -0500)]
cmd/gc: implement len(array) / cap(array) rule
The spec is looser than the current implementation.
The spec edit was made in CL
4444050 (May 2011)
but I never implemented it.
Fixes #3244.
R=ken2
CC=golang-dev
https://golang.org/cl/
5785049
Russ Cox [Thu, 8 Mar 2012 03:40:32 +0000 (22:40 -0500)]
cmd/cgo: silence const warnings
Fixes #3152.
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/
5786047
Andrew Gerrand [Thu, 8 Mar 2012 03:18:28 +0000 (14:18 +1100)]
doc: pngcrush and remove old, unused images
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/
5758047
Shenghou Ma [Thu, 8 Mar 2012 03:04:49 +0000 (12:04 +0900)]
doc: fix freebsd build
Also rename it to test.bash, for naming consistency.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5784045
Russ Cox [Thu, 8 Mar 2012 03:03:35 +0000 (22:03 -0500)]
cmd/gc: delete old map delete in walk
R=ken2
CC=golang-dev
https://golang.org/cl/
5783047
Russ Cox [Thu, 8 Mar 2012 03:03:18 +0000 (22:03 -0500)]
go/build, cmd/go: add support for .syso files
.syso files are system objects copied directly
into the package archive.
Fixes #1552.
R=alex.brainman, iant, r, minux.ma, remyoudompheng
CC=golang-dev
https://golang.org/cl/
5778043
Andrew Gerrand [Thu, 8 Mar 2012 02:36:38 +0000 (13:36 +1100)]
doc: link to sub-repositories from reference page
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5752049
Francisco Souza [Thu, 8 Mar 2012 01:49:13 +0000 (12:49 +1100)]
io: minor change in io.WriteAt docs.
R=adg, bradfitz
CC=golang-dev
https://golang.org/cl/
5787048
Robert Griesemer [Thu, 8 Mar 2012 00:57:26 +0000 (16:57 -0800)]
go/scanner: better panic diagnostic
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5787045
Volker Dobler [Thu, 8 Mar 2012 00:31:46 +0000 (18:31 -0600)]
windows: make background of gopher icon transparent
R=golang-dev, r, jdpoirier
CC=golang-dev
https://golang.org/cl/
5762045
Alex Brainman [Wed, 7 Mar 2012 23:01:15 +0000 (10:01 +1100)]
doc/go1.tmpl: small change left behind from
abf39116ffac
R=r
CC=golang-dev
https://golang.org/cl/
5752072
Alex Brainman [Wed, 7 Mar 2012 23:00:25 +0000 (10:00 +1100)]
path/filepath: retrieve real file name in windows EvalSymlinks
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5756049
Shenghou Ma [Wed, 7 Mar 2012 22:23:56 +0000 (06:23 +0800)]
build: re-enable some broken tests in run.bash
Updates #2982.
R=rsc, rsc
CC=golang-dev
https://golang.org/cl/
5759064
Rémy Oudompheng [Wed, 7 Mar 2012 22:15:55 +0000 (23:15 +0100)]
cmd/go: support -compiler for go list, fix isStale for gccgo.
Fixes #3228.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5784044
Dmitriy Vyukov [Wed, 7 Mar 2012 21:53:08 +0000 (08:53 +1100)]
encoding/gob: fix memory corruption
Fixes #3175.
R=golang-dev, iant, rsc, r
CC=golang-dev
https://golang.org/cl/
5758069
Russ Cox [Wed, 7 Mar 2012 20:30:54 +0000 (15:30 -0500)]
runtime: fix freebsd crash
FreeBSD, alone among our supported operating systems,
required that usleep not be interrupted. Don't require that.
Fixes #3217.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5781045
Robert Griesemer [Wed, 7 Mar 2012 20:24:20 +0000 (12:24 -0800)]
go/parser: better error synchronization
gofmt reports now a single, accurate error for
the test case of issue 3106.
Also: Added test harness for general error
checking and two test cases for now.
Fixes #3106.
R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/
5755062
Shenghou Ma [Wed, 7 Mar 2012 19:56:31 +0000 (03:56 +0800)]
doc/go_mem: init-created goroutine behavior changes for Go 1
They can start execution even before all init functions end.
R=rsc, r, adg
CC=golang-dev
https://golang.org/cl/
5732061
Russ Cox [Wed, 7 Mar 2012 19:55:09 +0000 (14:55 -0500)]
net, net/rpc, reflect, time: document concurrency guarantees
Fixes #1599.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5777043
Russ Cox [Wed, 7 Mar 2012 19:54:31 +0000 (14:54 -0500)]
testing: do not print 'no tests' when there are examples
I am not sure why RunTests and RunExamples are
exported, but I assume that because they are we
should not change the signature, so I added an
unexported global shared by Main and RunTests.
Fixes #3237.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5779043
Rémy Oudompheng [Wed, 7 Mar 2012 19:21:45 +0000 (14:21 -0500)]
runtime: try extending arena size in 32-bit allocator.
If it didn't reach the limit, we can try extending the arena
before resorting to random memory mappings and praying for the
kernel to be kind.
Fixes #3173.
R=rsc, rsc
CC=golang-dev
https://golang.org/cl/
5725045
Ian Lance Taylor [Wed, 7 Mar 2012 19:17:26 +0000 (11:17 -0800)]
test: enable method expression tests in ddd.go
R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/
5769044
Ian Lance Taylor [Wed, 7 Mar 2012 19:16:58 +0000 (11:16 -0800)]
test: fix testlib to not pass an empty argument to 6g
This change is necessary to make the run shell script work
again, but it is not sufficient as bug424.go's execution line
does not name the package that it imports.
R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/
5771043
Russ Cox [Wed, 7 Mar 2012 18:57:57 +0000 (13:57 -0500)]
doc: give up on OS X Leopard
Fixes #3206.
R=golang-dev, gri, bradfitz
CC=golang-dev
https://golang.org/cl/
5769046
Brad Fitzpatrick [Wed, 7 Mar 2012 18:54:04 +0000 (10:54 -0800)]
io: more docs on WriterAt
Updates #1599
R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/
5774043
Mikkel Krautz [Wed, 7 Mar 2012 18:51:05 +0000 (13:51 -0500)]
deps: allow crypto/x509 to use syscall
Allows the Windows part of CL
5700087 to land.
I had build tested CL
5753060 (which allows
crypto/x509 to use cgo and io/ioutil), and
didn't spot any errors on Windows.
Turns out I was wrong.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5753065
Robert Griesemer [Wed, 7 Mar 2012 18:19:32 +0000 (10:19 -0800)]
go/parser: better error sync. if commas are missing
This time for sure.
Runs all tests.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5752060
Robert Griesemer [Wed, 7 Mar 2012 18:19:16 +0000 (10:19 -0800)]
godoc: update documentation
R=rsc
CC=golang-dev
https://golang.org/cl/
5758057
Mikkel Krautz [Wed, 7 Mar 2012 18:12:35 +0000 (13:12 -0500)]
crypto/x509: new home for root fetchers; build chains using Windows API
This moves the various CA root fetchers from crypto/tls into crypto/x509.
The move was brought about by issue 2997. Windows doesn't ship with all
its root certificates, but will instead download them as-needed when using
CryptoAPI for certificate verification.
This CL changes crypto/x509 to verify a certificate using the system root
CAs when VerifyOptions.RootCAs == nil. On Windows, this verification is
now implemented using Windows's CryptoAPI. All other root fetchers are
unchanged, and still use Go's own verification code.
The CL also fixes the hostname matching logic in crypto/tls/tls.go, in
order to be able to test whether hostname mismatches are honored by the
Windows verification code.
The move to crypto/x509 also allows other packages to use the OS-provided
root certificates, instead of hiding them inside the crypto/tls package.
Fixes #2997.
R=agl, golang-dev, alex.brainman, rsc, mikkel
CC=golang-dev
https://golang.org/cl/
5700087
Russ Cox [Wed, 7 Mar 2012 17:09:43 +0000 (12:09 -0500)]
cmd/go: fix go test -compiler
The compiler must be changed with the Set method
so that the buildToolchain gets updated too.
Fixes #3231.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5768044
Russ Cox [Wed, 7 Mar 2012 17:06:22 +0000 (12:06 -0500)]
net: delete usableLocalPort from test
The old way to find a port was to listen :0 and then
look at what port it picked, close the listener, and then
immediately try to listen on that port.
On some Windows 7 machines that sequence fails at
the second listen, because the first one is still lingering
in the TCP/IP stack somewhere. (Ironically, most of these
are used in tests of a "second listen", which in this case
ends up being the third listen.)
Instead of this race, just return the listener from the
function, replacing usableLocalPort+Listen with
usableListenPort.
Fixes #3219.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5769045
Russ Cox [Wed, 7 Mar 2012 16:57:54 +0000 (11:57 -0500)]
doc: update effective_go.tmpl
Forgot this half in https://golang.org/cl/
5764044
R=gri
CC=golang-dev
https://golang.org/cl/
5770044
Russ Cox [Wed, 7 Mar 2012 16:44:54 +0000 (11:44 -0500)]
runtime/pprof: disable test on Leopard 64-bit
Fixes #3234.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5756078
Russ Cox [Wed, 7 Mar 2012 16:44:47 +0000 (11:44 -0500)]
cmd/cgo: document CGO_LDFLAGS and CGO_CFLAGS
Fixes #3203.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5769043
Russ Cox [Wed, 7 Mar 2012 16:38:39 +0000 (11:38 -0500)]
doc: update Effective Go init section
Goroutines are no longer excluded from init.
Fixes #3232.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5764044
Russ Cox [Wed, 7 Mar 2012 16:38:05 +0000 (11:38 -0500)]
make.bash: fix old builds
Fixes #3222.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5761044
Russ Cox [Wed, 7 Mar 2012 16:37:56 +0000 (11:37 -0500)]
doc: delete faq question about 6g
Fixes #3230.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
5753071
Ian Lance Taylor [Wed, 7 Mar 2012 16:24:10 +0000 (08:24 -0800)]
test: add inherited interface test to ddd.go
The gccgo compiler incorrectly gave an error for this code.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5767043
Russ Cox [Wed, 7 Mar 2012 15:21:56 +0000 (10:21 -0500)]
test: fix typo
R=ken2
CC=golang-dev
https://golang.org/cl/
5752073
Russ Cox [Wed, 7 Mar 2012 15:15:20 +0000 (10:15 -0500)]
undo CL
5754063 /
e23b66fcfc94
Does not actually test so files.
««« original CL description
misc/cgo: re-enable testso
Also enabled it for darwin.
R=rsc
CC=golang-dev
https://golang.org/cl/
5754063
»»»
R=golang-dev, minux.ma, r, f
CC=golang-dev
https://golang.org/cl/
5756075
Mikio Hara [Wed, 7 Mar 2012 07:28:40 +0000 (16:28 +0900)]
net: use IANA reserved port to test dial timeout
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5757060
Russ Cox [Wed, 7 Mar 2012 07:27:15 +0000 (02:27 -0500)]
cmd/gc: unnamed struct types can have methods
Fixes #3143.
R=ken2
CC=golang-dev
https://golang.org/cl/
5752070
Russ Cox [Wed, 7 Mar 2012 07:22:08 +0000 (02:22 -0500)]
test/run: fix builders
Let the outer environment filter down to the commands being run.
TBR=r
CC=golang-dev
https://golang.org/cl/
5758066
Russ Cox [Wed, 7 Mar 2012 06:55:17 +0000 (01:55 -0500)]
cmd/gc: do not confuse unexported methods of same name
Fixes #3146.
R=ken2
CC=golang-dev
https://golang.org/cl/
5756074
Russ Cox [Wed, 7 Mar 2012 06:54:39 +0000 (01:54 -0500)]
test: invoke go command in run.go
Lets us run multifile tests and tests with arguments.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5753068
Alex Brainman [Wed, 7 Mar 2012 06:48:09 +0000 (17:48 +1100)]
exp/wingui: getting relocated to
go get code.google.com/p/gowingui
R=golang-dev, minux.ma, r
CC=golang-dev
https://golang.org/cl/
5752067
Shenghou Ma [Wed, 7 Mar 2012 06:25:24 +0000 (14:25 +0800)]
cmd/go: always provide .exe suffix on windows
Fixes #3190.
R=rsc, tjyang2001, rsc
CC=golang-dev
https://golang.org/cl/
5759056
Shenghou Ma [Wed, 7 Mar 2012 06:24:28 +0000 (14:24 +0800)]
cmd/dist: fix build for Linux/ARM
find() returns -1 when not found.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5752068
Francisco Souza [Wed, 7 Mar 2012 06:21:38 +0000 (01:21 -0500)]
hgignore: ignore run.out generated by misc/cgo/stdio/test.bash
R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/
5757059
Mikio Hara [Wed, 7 Mar 2012 05:51:20 +0000 (14:51 +0900)]
sync/atomic: disable store and load test on a single processor machine
Fixes #3226.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5756073
Russ Cox [Wed, 7 Mar 2012 05:41:24 +0000 (00:41 -0500)]
net: fix TestDialTimeout on windows builder
I don't know what's out there, but something
is answering to 127.0.71.111:80 on our builder,
so use a different port.
Also insert a check that the dial fails, which
would have diagnosed this problem.
Fixes #3016.
R=golang-dev, mikioh.mikioh, r
CC=golang-dev
https://golang.org/cl/
5754062
Francisco Souza [Wed, 7 Mar 2012 05:40:16 +0000 (00:40 -0500)]
misc/cgo: re-enable testso
Also enabled it for darwin.
R=rsc
CC=golang-dev
https://golang.org/cl/
5754063
Russ Cox [Wed, 7 Mar 2012 05:02:07 +0000 (00:02 -0500)]
net: disable another external network test
I don't know enough about multicast.
Should this be disabled on all systems, not just Windows?
R=golang-dev
CC=golang-dev
https://golang.org/cl/
5754060
Russ Cox [Wed, 7 Mar 2012 05:01:57 +0000 (00:01 -0500)]
cmd/go: fix run errors
$ go run
go run: no go files listed
$ go run ../../pkg/math/bits.go
go run: cannot run non-main package
$
Fixes #3168.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5755064
Shenghou Ma [Wed, 7 Mar 2012 04:43:25 +0000 (12:43 +0800)]
test/run: use all available cores on ARM system
R=rsc
CC=golang-dev
https://golang.org/cl/
5753054
Shenghou Ma [Wed, 7 Mar 2012 04:41:43 +0000 (12:41 +0800)]
cmd/go, cmd/godoc, net: fix typo
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5757050
Russ Cox [Wed, 7 Mar 2012 04:38:54 +0000 (23:38 -0500)]
misc/cgo/test: fix build
The last CL forgot the all-important 'backdoor' package.
Cgo-using packages compile .c files with gcc, but we want
to compile this one with 6c, so put it in a non-cgo package.
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/
5758063
Russ Cox [Wed, 7 Mar 2012 04:35:31 +0000 (23:35 -0500)]
net: disable use of external listen along with other external network uses
By default the all.bash tests must not ever announce
on an external address. It's not just an OS X issue.
R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/
5753067
Rob Pike [Wed, 7 Mar 2012 04:29:26 +0000 (15:29 +1100)]
go_faq: a simple binary is a little smaller now
About 10% for hello, world.
Maybe more reductions will come.
Also clarify that we're comparing printf against Printf
(gcc can optimize aggressively, making this a different
sort of comparison).
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5756070
Russ Cox [Wed, 7 Mar 2012 04:27:30 +0000 (23:27 -0500)]
misc/cgo: re-enable some tests
The testso directory still needs to be enabled.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5731048
Russ Cox [Wed, 7 Mar 2012 04:27:11 +0000 (23:27 -0500)]
fmt, log: stop using unicode
$ go list -f '{{.ImportPath}} {{.Deps}}' fmt log
fmt [errors io math os reflect runtime strconv sync sync/atomic syscall time unicode/utf8 unsafe]
log [errors fmt io math os reflect runtime strconv sync sync/atomic syscall time unicode/utf8 unsafe]
R=bradfitz, rogpeppe, r, r, rsc
CC=golang-dev
https://golang.org/cl/
5753055
Rob Pike [Wed, 7 Mar 2012 03:10:49 +0000 (14:10 +1100)]
go/build: delete Makefile
We can write syslist.go by hand.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5757057
Rob Pike [Wed, 7 Mar 2012 03:07:22 +0000 (14:07 +1100)]
.hgignore: delete references to Make.inc and syslist.go
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5752066
Rob Pike [Wed, 7 Mar 2012 03:06:16 +0000 (14:06 +1100)]
exp/wingui: remove reference to Make.inc
R=golang-dev, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/
5757058
Rob Pike [Wed, 7 Mar 2012 02:51:49 +0000 (13:51 +1100)]
all: remove some references to Make.inc etc.
There are a few more but these are the easiest ones.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5756067
Rob Pike [Wed, 7 Mar 2012 02:50:31 +0000 (13:50 +1100)]
strconv: remove dependence on unicode and strings
We need a compact, reasonably efficient IsPrint. That adds about 2K of data,
plus a modest amount of code, but now strconv is a near-leaf package.
R=r, bradfitz, adg, rsc, minux.ma
CC=golang-dev
https://golang.org/cl/
5756050
Andrew Gerrand [Wed, 7 Mar 2012 02:34:01 +0000 (13:34 +1100)]
misc/dist: fix glob pattern under windows
R=bradfitz
CC=golang-dev
https://golang.org/cl/
5753066
Andrew Gerrand [Wed, 7 Mar 2012 02:13:26 +0000 (13:13 +1100)]
misc/dist: prepare source archives
Fixes #95.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5756066
Ian Lance Taylor [Wed, 7 Mar 2012 01:50:11 +0000 (17:50 -0800)]
doc: add note about import . to Go 1 compatibility notes
R=r
CC=golang-dev
https://golang.org/cl/
5752065
Brad Fitzpatrick [Wed, 7 Mar 2012 01:44:47 +0000 (17:44 -0800)]
database/sql: add docs about connection state, pooling
Fixes #3223
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5755063
Johan Euphrosine [Wed, 7 Mar 2012 00:24:00 +0000 (11:24 +1100)]
doc: fix typos in laws_of_reflection article, add copyright notice.
Update #2547.
R=golang-dev, minux.ma, r, r, adg
CC=golang-dev
https://golang.org/cl/
5755051
Alex Brainman [Wed, 7 Mar 2012 00:01:23 +0000 (11:01 +1100)]
os: fix SameFile to work for directories on windows
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5756064
Adam Langley [Tue, 6 Mar 2012 22:18:09 +0000 (17:18 -0500)]
deps: allow crypto/x509 cgo and io/ioutil.
In order to land
5700087 (which moves the knowledge of how to get the
root certificates for the system from crypto/tls to crypto/x509), we
need to relax the restrictions on crypto/x509. Afterwards, we can
probably tighten them up in crypto/tls.
R=golang-dev, rsc, krautz
CC=golang-dev
https://golang.org/cl/
5753060
Brad Fitzpatrick [Tue, 6 Mar 2012 22:10:58 +0000 (14:10 -0800)]
database/sql: fix typo bug resulting in double-Prepare
Bug reported by Blake Mizerany found while writing
his new Postgres driver.
R=golang-dev, blake.mizerany
CC=golang-dev
https://golang.org/cl/
5754057
Shenghou Ma [Tue, 6 Mar 2012 21:15:47 +0000 (08:15 +1100)]
doc: update links
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5754051
Rob Pike [Tue, 6 Mar 2012 21:14:12 +0000 (08:14 +1100)]
path/filepath: disable AbsTest on windows
SameFile has a bug.
R=golang-dev
TBR=rsc
CC=golang-dev
https://golang.org/cl/
5754055
Shenghou Ma [Tue, 6 Mar 2012 21:05:10 +0000 (08:05 +1100)]
doc: remove unsued progs and makehtml script, update progs/run
Due to removal of go_tutorial, unused programs are removed.
makehtml is unnecessary (it also gives wrong messages when
the destination file doesn't exist)
progs/run now compiles all remaining programs under doc/progs.
Fixes #3076 (again)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5755053
Rob Pike [Tue, 6 Mar 2012 20:54:56 +0000 (07:54 +1100)]
path/filepath/path_test.go: repair and enable TestAbs
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5759051
Andrew Gerrand [Tue, 6 Mar 2012 20:40:21 +0000 (07:40 +1100)]
doc: add "The go command" article based on Russ' mail
This is a philosophical document. We can soup it up at a later stage,
but for now it's nice to have a URL to point to that isn't a mailing
list post.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5676061
Robert Griesemer [Tue, 6 Mar 2012 19:23:27 +0000 (11:23 -0800)]
go/parser: fix build (temporarily disable recent change)
R=golang-dev
CC=golang-dev
https://golang.org/cl/
5752059
Robert Griesemer [Tue, 6 Mar 2012 19:05:16 +0000 (11:05 -0800)]
go/parser: better error sync. if commas are missing
R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/
5756045
Adam Langley [Tue, 6 Mar 2012 17:49:29 +0000 (12:49 -0500)]
crypto/tls: make the package description more accurate and less aspirational.
Fixes #3216.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5755056
Shenghou Ma [Tue, 6 Mar 2012 17:10:55 +0000 (01:10 +0800)]
time: during short test, do not bother tickers take longer than expected
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5752058
Ian Lance Taylor [Tue, 6 Mar 2012 17:07:00 +0000 (09:07 -0800)]
runtime: remove unused runtime·signame and runtime·newError
R=golang-dev
CC=golang-dev
https://golang.org/cl/
5756044
Maxim Pimenov [Tue, 6 Mar 2012 14:33:35 +0000 (09:33 -0500)]
cmd/go: honour buildflags in go run
Either documentation or implementation
of go run's flags is wrong currently.
This change assumes the documentation
to be right.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5752054
Rémy Oudompheng [Tue, 6 Mar 2012 07:02:39 +0000 (08:02 +0100)]
net: do not use reflect for DNS messages.
Fixes #3201.
R=bradfitz, bradfitz, rsc
CC=golang-dev, remy
https://golang.org/cl/
5753045
Mikio Hara [Tue, 6 Mar 2012 06:41:17 +0000 (15:41 +0900)]
net: add skip message to test
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5753048
Brad Fitzpatrick [Tue, 6 Mar 2012 06:36:15 +0000 (22:36 -0800)]
cmd/go: allow go get with arbitrary URLs
This CL permits using arbitrary, non-VCS-qualified URLs as
aliases for fully VCS-qualified and/or well-known code hosting
sites.
Example 1) A VCS-qualified URL can now be shorter.
Before:
$ go get camlistore.org/r/p/camlistore.git/pkg/blobref
After:
$ go get camlistore.org/pkg/blobref
Example 2) A custom domain can be used as the import,
referencing a well-known code hosting site.
Before:
$ go get github.com/bradfitz/sonden
After:
$ go get bradfitz.com/pkg/sonden
The mechanism used is a <meta> tag in the HTML document
retrieved from fetching:
https://<import>?go-get=1 (preferred)
http://<import>?go-get=1 (fallback)
The meta tag should look like:
<meta name="go-import" content="import-alias-prefix vcs full-repo-root">
The full-repo-root must be a full URL root to a repository containing
a scheme and *not* containing a ".vcs" qualifier.
The vcs is one of "git", "hg", "svn", etc.
The import-alias-prefix must be a prefix or exact match of the
package being fetched with "go get".
If there are multiple meta tags, only the one with a prefix
matching the import path is used. It is an error if multiple
go-import values match the import prefix.
If the import-alias-prefix is not an exact match for the import,
another HTTP fetch is performed, at the declared root (which does
*not* need to be the domain's root).
For example, assuming that "camlistore.org/pkg/blobref" declares
in its HTML head:
<meta name="go-import" content="camlistore.org git https://camlistore.org/r/p/camlistore" />
... then:
$ go get camlistore.org/pkg/blobref
... looks at the following URLs:
https://camlistore.org/pkg/blobref?go-get=1
http://camlistore.org/pkg/blobref?go-get=1
https://camlistore.org/?go-get=1
http://camlistore.org/?go-get=1
Ultimately it finds, at the root (camlistore.org/), the same go-import:
<meta name="go-import" content="camlistore.org git https://camlistore.org/r/p/camlistore" />
... and proceeds to trust it, checking out git //camlistore.org/r/p/camlistore at
the import path of "camlistore.org" on disk.
Fixes #3099
R=r, rsc, gary.burd, eikeon, untheoretic, n13m3y3r, rsc
CC=golang-dev
https://golang.org/cl/
5660051
Alex Brainman [Tue, 6 Mar 2012 06:21:39 +0000 (17:21 +1100)]
cmd/dist: use correct hg tag for go version
When looking for suitable tag always start
from current version, not the tip.
R=minux.ma, rsc
CC=golang-dev
https://golang.org/cl/
5731059
Andrew Gerrand [Tue, 6 Mar 2012 05:56:30 +0000 (16:56 +1100)]
doc/gopher: flip frontpage gopher's eyes
R=r, r
CC=golang-dev
https://golang.org/cl/
5759045
Russ Cox [Tue, 6 Mar 2012 05:36:24 +0000 (00:36 -0500)]
cmd/go: add -compiler
go/build: add Context.Compiler
Fixes #3157.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5756047