]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
12 years agoweekly.2011-12-22 weekly.2011-12-22
Andrew Gerrand [Fri, 23 Dec 2011 03:28:01 +0000 (14:28 +1100)]
weekly.2011-12-22

R=dsymonds, r, r, rsc, adg, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5498074

12 years agocmd/go: two testing fixes
Russ Cox [Fri, 23 Dec 2011 03:24:43 +0000 (22:24 -0500)]
cmd/go: two testing fixes

1. Show passing output for "go test" (no args) and with -v flag.
2. Warn about out-of-date packages being rebuilt.

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

12 years agoruntime: delete old asm_*.h if still around
Russ Cox [Fri, 23 Dec 2011 03:24:34 +0000 (22:24 -0500)]
runtime: delete old asm_*.h if still around

Fixes bug Robert ran into.

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

12 years agocmd/go: update "go help remote" to use correct Google Code urls
Andrew Gerrand [Fri, 23 Dec 2011 03:09:44 +0000 (14:09 +1100)]
cmd/go: update "go help remote" to use correct Google Code urls

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

12 years agopath/filepath: implement Base and Dir for windows
Alex Brainman [Fri, 23 Dec 2011 02:23:07 +0000 (13:23 +1100)]
path/filepath: implement Base and Dir for windows

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

12 years agodashboard: Don't highlight first heading row.
David Symonds [Fri, 23 Dec 2011 02:21:25 +0000 (13:21 +1100)]
dashboard: Don't highlight first heading row.

The two heading rows were previously a little hard to pick out,
because they were alternately shaded like the commit rows.

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

12 years agotesting: add wrapper methods so the godoc output lists all methods
Rob Pike [Fri, 23 Dec 2011 01:17:19 +0000 (17:17 -0800)]
testing: add wrapper methods so the godoc output lists all methods
To be deleted when godoc catches up.

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

12 years agohtml: Don't ignore whitespace in "after after frameset" mode.
Andrew Balholm [Fri, 23 Dec 2011 00:07:11 +0000 (11:07 +1100)]
html: Don't ignore whitespace in "after after frameset" mode.

Pass tests6.dat, test 46:
<html><frameset></frameset></html>

| <html>
|   <head>
|   <frameset>
|   " "

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

12 years agopartial build fix: add missing argument to NewPackageDoc
Robert Griesemer [Thu, 22 Dec 2011 23:52:56 +0000 (15:52 -0800)]
partial build fix: add missing argument to NewPackageDoc

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

12 years agofix build: correct build scripts
Robert Griesemer [Thu, 22 Dec 2011 23:52:33 +0000 (15:52 -0800)]
fix build: correct build scripts

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

12 years agofix build: updated build scripts
Robert Griesemer [Thu, 22 Dec 2011 23:37:09 +0000 (15:37 -0800)]
fix build: updated build scripts

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

12 years agogo/doc, godoc: move export filtering into go/doc
Robert Griesemer [Thu, 22 Dec 2011 23:28:15 +0000 (15:28 -0800)]
go/doc, godoc: move export filtering into go/doc

- exports.go contains a stripped-down (but semantically unchanged)
  version of the code in go/ast/filter.go for export filtering
- filter.go contains the documentation filtering code found before
  at the end of doc.go; this is simply a code move w/o any semantic
  changes
- godoc now relies on go/doc for export filtering when creating
  documentation. It still has a separate form of export filtering
  for showing the source code version. This needs to be consolidated
  (perhaps the source form view should just be removed?).
- Stripping of function bodies (stripFunctionBodies function of
  godoc.go) is now happening in doc.go (line 176).
- doc.NewPackageDoc has an extra parameter "exportsOnly. If set
  to false, the behavior is as before. This function is only called
  once in our source code; a gofix module is probably not warranted.
- Deleted doc.NewFileDoc - was never called.

This change is mostly a code move w/ some minimal tweaks. It should
not cause any changes to the behavior of godoc. It's a prerequisite
for extracting anonymous embedded fields.

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

12 years agofmt: make the malloc test check its counts
Rob Pike [Thu, 22 Dec 2011 23:16:06 +0000 (15:16 -0800)]
fmt: make the malloc test check its counts
Discover than %g is now down to 1 malloc from 2 from 4.
Have fun with funcs.

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

12 years agogo/build: (*Tree).BinDir should not return path with / in it on windows
Alex Brainman [Thu, 22 Dec 2011 22:46:30 +0000 (09:46 +1100)]
go/build: (*Tree).BinDir should not return path with / in it on windows

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

12 years agostrconv: fix bug in extended-float based conversion.
Rémy Oudompheng [Thu, 22 Dec 2011 22:28:35 +0000 (17:28 -0500)]
strconv: fix bug in extended-float based conversion.

A test intended for denormals erroneously returned true also for
infinities, leading to bad overflows and wrong error estimates.

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

12 years agomath/big: Rand shouldn't hang if argument is also receiver.
Robert Griesemer [Thu, 22 Dec 2011 22:15:41 +0000 (14:15 -0800)]
math/big: Rand shouldn't hang if argument is also receiver.

Fixes #2607.

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

12 years agopath: Dir
Rob Pike [Thu, 22 Dec 2011 22:08:34 +0000 (14:08 -0800)]
path: Dir

There was Base but not Dir, so fill in the gap.

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

12 years agogo/doc: s/typeDoc/typeInfo/
Robert Griesemer [Thu, 22 Dec 2011 22:00:52 +0000 (14:00 -0800)]
go/doc: s/typeDoc/typeInfo/

To avoid confusion between typeDoc and TypeDoc.
No semantic change.

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

12 years agopath/filepath: Dir
Rob Pike [Thu, 22 Dec 2011 21:58:58 +0000 (13:58 -0800)]
path/filepath: Dir

There was Base but not Dir, so fill in the gap.

R=n13m3y3r, r, rsc, gustavo
CC=golang-dev
https://golang.org/cl/5503067

12 years agodoc: fix misspelt CSS properties.
David Symonds [Thu, 22 Dec 2011 21:48:21 +0000 (08:48 +1100)]
doc: fix misspelt CSS properties.

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

12 years agogo/doc, godoc: show methods of anonymous fields
Robert Griesemer [Thu, 22 Dec 2011 21:11:40 +0000 (13:11 -0800)]
go/doc, godoc: show methods of anonymous fields

Missing: Handling of embedded interfaces.

Also, for reasons outlined in the previous CL (5500055), embedded
types have to be exported for its "inherited" methods to be visible.
This will be addressed w/ a subsequent CL.

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

12 years agotesting: fix the fix to the wording about the bug
Rob Pike [Thu, 22 Dec 2011 19:23:10 +0000 (11:23 -0800)]
testing: fix the fix to the wording about the bug
TBR=rsc

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

12 years agotesting: fix wording in explanation of potential bug
Rob Pike [Thu, 22 Dec 2011 19:08:51 +0000 (11:08 -0800)]
testing: fix wording in explanation of potential bug
TBR=rsc

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

12 years agotesting: make signalling safer for parallel tests
Rob Pike [Thu, 22 Dec 2011 18:43:54 +0000 (10:43 -0800)]
testing: make signalling safer for parallel tests
Each test gets a private signal channel.
Also fix a bug that prevented parallel tests from running.

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

12 years agotesting: compare Log to Println
Robert Hencke [Thu, 22 Dec 2011 18:05:51 +0000 (10:05 -0800)]
testing: compare Log to Println

Log always adds spaces between operands, like Println but unlike Print

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

12 years agogc: better linenumbers for inlined functions
Luuk van Dijk [Thu, 22 Dec 2011 16:31:54 +0000 (17:31 +0100)]
gc: better linenumbers for inlined functions

Fixes #2580 up to a point.

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

12 years agoexp/terminal: several cleanups
Adam Langley [Thu, 22 Dec 2011 16:23:57 +0000 (11:23 -0500)]
exp/terminal: several cleanups

1) Add EscapeCodes to the terminal so that applications don't wire
   them in.
2) Add a callback for auto-complete
3) Fix an issue with input lines longer than the width of the
   terminal.
4) Have Write() not stomp the current line. It now erases the current
   input, writes the output and reprints the prompt and partial input.
5) Support prompting without local echo in Terminal.
6) Add GetSize to report the size of terminal.

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

12 years agosyscall: make pipe work on netbsd
Joel Sing [Thu, 22 Dec 2011 15:47:48 +0000 (02:47 +1100)]
syscall: make pipe work on netbsd

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

12 years agoos: update package location of exec to os/exec in comments
Brad Fitzpatrick [Thu, 22 Dec 2011 15:25:43 +0000 (07:25 -0800)]
os: update package location of exec to os/exec in comments

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

12 years agodashboard: horizontal crunch
Russ Cox [Thu, 22 Dec 2011 15:22:38 +0000 (10:22 -0500)]
dashboard: horizontal crunch

* group builders in to columns by OS
* drop builder suffix (moved to hover title)
* cut all domain names from email (full name+email in hover title)
* make ok smaller

This should easily give us room for netbsd and plan9,
even on small laptop screens.

Running at http://build-rsc.golang.org/.

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

12 years agodashboard: do not require key in source code
Russ Cox [Thu, 22 Dec 2011 15:21:59 +0000 (10:21 -0500)]
dashboard: do not require key in source code

Or else eventually someone will check it in.

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

12 years agocmd/go: fix windows build
Mikio Hara [Thu, 22 Dec 2011 15:14:59 +0000 (00:14 +0900)]
cmd/go: fix windows build

R=golang-dev, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5502066

12 years agocmd/gc: make sure use of pthread for gcc-4.5 and beyond
Mikio Hara [Thu, 22 Dec 2011 14:18:34 +0000 (23:18 +0900)]
cmd/gc: make sure use of pthread for gcc-4.5 and beyond

R=golang-dev, rsc, n13m3y3r, rogpeppe
CC=golang-dev
https://golang.org/cl/5501060

12 years agosyscall: make getdirentries work on netbsd
Joel Sing [Thu, 22 Dec 2011 12:42:43 +0000 (23:42 +1100)]
syscall: make getdirentries work on netbsd

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5504068

12 years agodoc: refer to http://build.golang.org/ where applicable
Robert Hencke [Thu, 22 Dec 2011 03:21:25 +0000 (14:21 +1100)]
doc: refer to http://build.golang.org/ where applicable

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

12 years agoexec: disable the ExtraFiles test on darwin
Brad Fitzpatrick [Thu, 22 Dec 2011 01:08:16 +0000 (17:08 -0800)]
exec: disable the ExtraFiles test on darwin

Still a mystery. New issue 2603 filed.

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

12 years agoruntime: don't panic on SIGILL, just crash
Ian Lance Taylor [Wed, 21 Dec 2011 23:45:36 +0000 (15:45 -0800)]
runtime: don't panic on SIGILL, just crash

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

12 years agodashboard: delete old build dashboard code
Andrew Gerrand [Wed, 21 Dec 2011 22:53:52 +0000 (09:53 +1100)]
dashboard: delete old build dashboard code

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

12 years agoos/exec: put the print where it will help
Russ Cox [Wed, 21 Dec 2011 22:49:29 +0000 (17:49 -0500)]
os/exec: put the print where it will help

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

12 years agodashboard: add /key handler
Andrew Gerrand [Wed, 21 Dec 2011 22:38:57 +0000 (09:38 +1100)]
dashboard: add /key handler

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

12 years agodashboard: deprecation notice for the old dashboard
Andrew Gerrand [Wed, 21 Dec 2011 22:38:35 +0000 (09:38 +1100)]
dashboard: deprecation notice for the old dashboard

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

12 years agoos/exec: dump lsof on failure
Russ Cox [Wed, 21 Dec 2011 22:17:28 +0000 (17:17 -0500)]
os/exec: dump lsof on failure

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

12 years agogodoc: fix crash
Robert Griesemer [Wed, 21 Dec 2011 21:55:47 +0000 (13:55 -0800)]
godoc: fix crash

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

12 years agoos/exec: enable inherited file descriptor test
Andrew Gerrand [Wed, 21 Dec 2011 21:50:56 +0000 (08:50 +1100)]
os/exec: enable inherited file descriptor test

Fixes #2596.

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

12 years agoos/user: not on windows
Russ Cox [Wed, 21 Dec 2011 21:35:31 +0000 (16:35 -0500)]
os/user: not on windows

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

12 years agobuildscript: make script safer, same output on Windows
Russ Cox [Wed, 21 Dec 2011 20:58:05 +0000 (15:58 -0500)]
buildscript: make script safer, same output on Windows

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

12 years agobuild: fixes for Windows
Russ Cox [Wed, 21 Dec 2011 20:57:47 +0000 (15:57 -0500)]
build: fixes for Windows

* work around a linker/cgo bug
* do not run deps.bash on Windows unless we need it
  (cuts a full minute off the build time)
* add windows to the list of cgo-enabled targets

The gopack problem is issue 2601.

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

12 years agodoc/progs/run: go1 prints output; fix test
Rob Pike [Wed, 21 Dec 2011 20:06:20 +0000 (12:06 -0800)]
doc/progs/run: go1 prints output; fix test

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

12 years agopath/filepath.Rel: document that the returned path is always relative
Rob Pike [Wed, 21 Dec 2011 19:46:42 +0000 (11:46 -0800)]
path/filepath.Rel: document that the returned path is always relative

Fixes #2593.

R=rsc, alex.brainman, n13m3y3r
CC=golang-dev
https://golang.org/cl/5500052

12 years agocrypto/x509: don't crash with nil receiver in accessor method
Brad Fitzpatrick [Wed, 21 Dec 2011 18:49:35 +0000 (10:49 -0800)]
crypto/x509: don't crash with nil receiver in accessor method

Fixes #2600

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

12 years agogo/doc: steps towards collecting methods of embedded types
Robert Griesemer [Wed, 21 Dec 2011 16:45:00 +0000 (08:45 -0800)]
go/doc: steps towards collecting methods of embedded types

No visible external changes yet. The current approach is
a stop-gap approach: For methods of anonymous fields to be
seen, the anonymous field's types must be exported.

Missing: computing the actual MethodDocs and displaying them.

(Depending on the operation mode of godoc, the input to go/doc
is a pre-filtered AST with all non-exported nodes removed. Non-
exported anonymous fields are not even seen by go/doc in this
case, and it is impossible to collect associated (even exported)
methods. A correct fix will require some more significant re-
engineering; AST filtering will have to happen later, possibly
inside go/doc.)

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

12 years agoos/user: fix for arm (non-cgo)
Russ Cox [Wed, 21 Dec 2011 15:17:37 +0000 (10:17 -0500)]
os/user: fix for arm (non-cgo)

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5504056

12 years agocmd/go: respect $GCFLAGS
Russ Cox [Wed, 21 Dec 2011 14:04:34 +0000 (09:04 -0500)]
cmd/go: respect $GCFLAGS

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

12 years agogo/build: add new +build tags 'cgo' and 'nocgo'
Russ Cox [Wed, 21 Dec 2011 13:51:18 +0000 (08:51 -0500)]
go/build: add new +build tags 'cgo' and 'nocgo'

This lets us mark net's cgo_stub.go as only to be
built when cgo is disabled.

R=golang-dev, ality, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5489100

12 years agocmd/go: use spaces consistently in help message
Roger Peppe [Wed, 21 Dec 2011 13:25:31 +0000 (08:25 -0500)]
cmd/go: use spaces consistently in help message

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

12 years agoos/signal: not on windows
Russ Cox [Wed, 21 Dec 2011 13:20:25 +0000 (08:20 -0500)]
os/signal: not on windows

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

12 years agocmd/go: fix build (piece of 5489100 leaked in to last checkin)
Russ Cox [Wed, 21 Dec 2011 13:05:04 +0000 (08:05 -0500)]
cmd/go: fix build (piece of 5489100 leaked in to last checkin)

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5489102

12 years agoos/signal: do not build on Plan 9
Anthony Martin [Wed, 21 Dec 2011 12:52:07 +0000 (07:52 -0500)]
os/signal: do not build on Plan 9

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

12 years agocmd/go: many improvements
Russ Cox [Wed, 21 Dec 2011 12:47:12 +0000 (07:47 -0500)]
cmd/go: many improvements

* correct dependency calculations
* comment meaning of action fields
* new alias "std" like "all" but standard packages only
* add -o flag to 'go build'
* set up for parallel build (still serial)
* understand that import "C" depends on cgo, runtime/cgo

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5502055

12 years agonet, syscall: interface address and mask
Mikio Hara [Wed, 21 Dec 2011 12:39:00 +0000 (21:39 +0900)]
net, syscall: interface address and mask

This CL makes both InterfaceAddrs and Addrs method on Interface
return IPNet struct for representing interface address and mask
like below:

interface "lo0": flags "up|loopback|multicast", ifindex 1, mtu 16384
        interface address "fe80::1/64"
        interface address "127.0.0.1/8"
        interface address "::1/128"
        joined group address "ff02::fb"
        joined group address "224.0.0.251"
        joined group address "ff02::2:65d0:d71e"
        joined group address "224.0.0.1"
  joined group address "ff01::1"
        joined group address "ff02::1"
        joined group address "ff02::1:ff00:1"

Fixes #2571.

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

12 years agoruntime: silence darwin/386 build warnings
Russ Cox [Wed, 21 Dec 2011 12:23:03 +0000 (07:23 -0500)]
runtime: silence darwin/386 build warnings

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

12 years agocmd/go: avoid infinite loop with package specific flags
Mikio Hara [Wed, 21 Dec 2011 12:20:17 +0000 (21:20 +0900)]
cmd/go: avoid infinite loop with package specific flags

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

12 years agodashboard: fix typo in css
Andrew Gerrand [Wed, 21 Dec 2011 10:47:59 +0000 (21:47 +1100)]
dashboard: fix typo in css

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

12 years agocrypto/mime/net/time: add netbsd to +build tags
Joel Sing [Wed, 21 Dec 2011 10:44:47 +0000 (21:44 +1100)]
crypto/mime/net/time: add netbsd to +build tags

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5501052

12 years agodashboard: use 'ok' instead of 'hit' or 'miss' for bool return vals
Andrew Gerrand [Wed, 21 Dec 2011 10:12:03 +0000 (21:12 +1100)]
dashboard: use 'ok' instead of 'hit' or 'miss' for bool return vals

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

12 years agobuild: rewrite to use bash time builtin
Russ Cox [Wed, 21 Dec 2011 06:24:57 +0000 (01:24 -0500)]
build: rewrite to use bash time builtin

Should help windows/amd64

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

12 years agodashboard: cache todo responses
Andrew Gerrand [Wed, 21 Dec 2011 06:24:42 +0000 (17:24 +1100)]
dashboard: cache todo responses

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

12 years agobuilder: set default builder host to build.golang.org
Andrew Gerrand [Wed, 21 Dec 2011 06:12:16 +0000 (17:12 +1100)]
builder: set default builder host to build.golang.org

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

12 years agobuild: multiple fixes to make "go install" work on windows
Alex Brainman [Wed, 21 Dec 2011 05:57:44 +0000 (16:57 +1100)]
build: multiple fixes to make "go install" work on windows

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

12 years agobuilder: report run time
Andrew Gerrand [Wed, 21 Dec 2011 04:43:12 +0000 (15:43 +1100)]
builder: report run time
dashboard: record run time

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

12 years agodashboard: store front page in memcache
Andrew Gerrand [Wed, 21 Dec 2011 03:57:46 +0000 (14:57 +1100)]
dashboard: store front page in memcache

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

12 years agodashboard: put http handlers in new file handler.go
Andrew Gerrand [Wed, 21 Dec 2011 03:07:32 +0000 (14:07 +1100)]
dashboard: put http handlers in new file handler.go

This CL contains no code changes.

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

12 years agodashboard: send mail on build failure
Andrew Gerrand [Wed, 21 Dec 2011 02:16:47 +0000 (13:16 +1100)]
dashboard: send mail on build failure

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

12 years agobuild: make use of env
Mikio Hara [Wed, 21 Dec 2011 02:11:55 +0000 (11:11 +0900)]
build: make use of env

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

12 years agobuild: fix for freebsd, openbsd
Russ Cox [Wed, 21 Dec 2011 01:37:58 +0000 (20:37 -0500)]
build: fix for freebsd, openbsd

TBR=r
CC=golang-dev
https://golang.org/cl/5505052

12 years agodashboard: fix log recording and output
Andrew Gerrand [Wed, 21 Dec 2011 01:13:27 +0000 (12:13 +1100)]
dashboard: fix log recording and output

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

12 years agodashboard: more descriptive logging, ui tweaks, show better auth error
Andrew Gerrand [Wed, 21 Dec 2011 00:08:47 +0000 (11:08 +1100)]
dashboard: more descriptive logging, ui tweaks, show better auth error

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

12 years agoos: don't trust O_CLOEXEC on OS X
Brad Fitzpatrick [Tue, 20 Dec 2011 23:41:37 +0000 (15:41 -0800)]
os: don't trust O_CLOEXEC on OS X

OS X 10.6 doesn't do O_CLOEXEC.
OS X 10.7 does.

For now, always fall back to using syscall.CloseOnExec on darwin.

This can removed when 10.6 is old news, or if we find a
way to cheaply & reliably detect 10.6 vs 10.7 at runtime.

Fixes #2587

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

12 years agobuild: fix the build with USE_GO_TOOL=false
Brad Fitzpatrick [Tue, 20 Dec 2011 23:30:36 +0000 (15:30 -0800)]
build: fix the build with USE_GO_TOOL=false

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

12 years agoimage/ycbcr: move the Y'CbCr types into image and image/color.
Nigel Tao [Tue, 20 Dec 2011 23:29:21 +0000 (10:29 +1100)]
image/ycbcr: move the Y'CbCr types into image and image/color.

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

12 years agohtml: handle breakout tags in foreign content.
Nigel Tao [Tue, 20 Dec 2011 23:00:41 +0000 (10:00 +1100)]
html: handle breakout tags in foreign content.

Also recognize that, in the latest version of the HTML5 spec,
foreign content is not an insertion mode, but a separate concern.

Pass tests10.dat, test 13:
<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <table>
|       <caption>
|         <svg svg>
|           <svg g>
|             "foo"
|           <svg g>
|             "bar"
|         <p>
|           "baz"
|     <p>
|       "quux"

Also pass tests through test 15:
<!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

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

12 years agodashboard: send builder in commit POST query string
Andrew Gerrand [Tue, 20 Dec 2011 22:59:45 +0000 (09:59 +1100)]
dashboard: send builder in commit POST query string

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

12 years agobuild: a round of fixes
Russ Cox [Tue, 20 Dec 2011 22:54:40 +0000 (17:54 -0500)]
build: a round of fixes

TBR=r
CC=golang-dev
https://golang.org/cl/5503052

12 years agonet: fix Windows build
Brad Fitzpatrick [Tue, 20 Dec 2011 22:32:33 +0000 (14:32 -0800)]
net: fix Windows build

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

12 years agoeffective_go: redeclaration
Rob Pike [Tue, 20 Dec 2011 22:15:35 +0000 (14:15 -0800)]
effective_go: redeclaration

Fixes #2455.
Fixes #2013.

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

12 years agobuild: fix on Linux
Russ Cox [Tue, 20 Dec 2011 22:11:16 +0000 (17:11 -0500)]
build: fix on Linux

On other systems the temporary directory name
will have a .XXXXXX in the middle of it.  Oh well.

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

12 years agobuild: fix build
Russ Cox [Tue, 20 Dec 2011 22:00:52 +0000 (17:00 -0500)]
build: fix build

Missing file during last CL.

TBR=r
CC=golang-dev
https://golang.org/cl/5505047

12 years agobuild: use go command during build
Russ Cox [Tue, 20 Dec 2011 21:50:13 +0000 (16:50 -0500)]
build: use go command during build

If something goes wrong, it should suffice to set
USE_GO_TOOL=false in env.bash to fall back to the
makefiles.  I will delete the makefiles in January.

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

12 years agocmd/go: work toward build script
Russ Cox [Tue, 20 Dec 2011 21:42:44 +0000 (16:42 -0500)]
cmd/go: work toward build script

The commands in the standard tree are now named
by the pseudo-import paths cmd/gofmt etc.
This avoids ambiguity between cmd/go's directory
and go/token's parent directory.

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

12 years agobuilder: use go-build.appspot.com instead of godashboard by default
Andrew Gerrand [Tue, 20 Dec 2011 21:28:54 +0000 (08:28 +1100)]
builder: use go-build.appspot.com instead of godashboard by default

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

12 years agogc: allow use of unsafe.Pointer in generated code
Russ Cox [Tue, 20 Dec 2011 21:25:57 +0000 (16:25 -0500)]
gc: allow use of unsafe.Pointer in generated code

The functions we generate to implement == on structs
or arrays may need to refer to unsafe.Pointer even in
safe mode, in order to handle unexported fields contained
in other packages' structs.

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

12 years agonet: DialTimeout
Brad Fitzpatrick [Tue, 20 Dec 2011 21:17:39 +0000 (13:17 -0800)]
net: DialTimeout

Fixes #240

R=adg, dsymonds, rsc, r, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5491062

12 years agotemplate: better error message for empty templates
Rob Pike [Tue, 20 Dec 2011 20:58:23 +0000 (12:58 -0800)]
template: better error message for empty templates
New("x").ParseFiles("y") can result in an empty "x" template.
Make the message clearer that this is the problem. The error
returns from both template packages in this case were
confusing.

I considered making the method use "x" instead of "y" in
this case, but that just made other situations confusing
and harder to explain.

Fixes #2594.

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

12 years ago.hgignore: ignore autogenerated files
Christopher Wedgwood [Tue, 20 Dec 2011 20:54:39 +0000 (15:54 -0500)]
.hgignore: ignore autogenerated files

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

12 years agoruntime/cgo: fix build
Russ Cox [Tue, 20 Dec 2011 19:42:58 +0000 (14:42 -0500)]
runtime/cgo: fix build

Two forgotten renames from last CL.

TBR=r
CC=golang-dev
https://golang.org/cl/5502046

12 years agogo: build runtime/cgo
Russ Cox [Tue, 20 Dec 2011 19:25:23 +0000 (14:25 -0500)]
go: build runtime/cgo

Also rename -v to -x in the build and install commands,
to match the flag in go test (which we can't change
because -v is taken).  Matches sh -x anyway.

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

12 years agopanics: use the new facilities of testing.B instead
Rob Pike [Tue, 20 Dec 2011 18:36:25 +0000 (10:36 -0800)]
panics: use the new facilities of testing.B instead

Lots of panics go away.
Also fix a name error in html/template.

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

12 years agogo/ast, parser: remember short variable decls. w/ correspoding ident objects
Robert Griesemer [Tue, 20 Dec 2011 17:59:09 +0000 (09:59 -0800)]
go/ast, parser: remember short variable decls. w/ correspoding ident objects

The ast.Object's Decl field pointed back to the corresponding declaration for
all but short variable declarations. Now remember corresponding assignment
statement in the Decl field.

Also: simplified some code for parsing select statements.

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

12 years agotesting: allow benchmarks to print and fail
Rob Pike [Tue, 20 Dec 2011 17:51:39 +0000 (09:51 -0800)]
testing: allow benchmarks to print and fail
Refactors the benchmarks and test code.
Now benchmarks can call Errorf, Fail, etc.,
and the runner will act accordingly.

Because functionality has been folded into an
embedded type, a number of methods' docs
no longer appear in godoc output. A fix is
underway; if it doesn't happen fast enough,
I'll add wrapper methods to restore the
documentation.

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

12 years agocgo: support export for built-in types
Maxim Pimenov [Tue, 20 Dec 2011 17:28:45 +0000 (09:28 -0800)]
cgo: support export for built-in types
This change doesn't pay attention to structs
so they still cannot be exported, see Issue 2552.

Fixes #2462.

R=dvyukov, rsc, iant
CC=golang-dev
https://golang.org/cl/5487058