weekly.2011-11-08

99 views
Skip to first unread message

Andrew Gerrand

unread,
Nov 8, 2011, 6:33:04 PM11/8/11
to golang-nuts
We've just tagged a new Go weekly, weekly.2011-11-08. As usual, you
can update by running:
hg pull
hg update weekly

This weekly snapshot includes some package changes.

In preparation for the Go 1 package reorganziation the sources for various
packages have been moved, but the import paths remain unchanged. This
inconsistency breaks goinstall at this snapshot. If you use goinstall, please
stay synced to the previous weekly snapshot until the next one is tagged.

The Error methods in the html, bzip2, and sql packages that return error values
have been renamed to Err.

Some non-core parts of the http package have been moved to net/http/httputil.
The Dump* and NewChunked* functions and ClientConn, ServerConn, and
ReverseProxy types have been moved from http to httputil.

The API for html/template is now a direct copy of the template API, instead of
exposing a single Escape function. For HTML templates, simply use the
html/template package as you would the template package.

Other changes:
* all: rename os.EOF to io.EOF in non-code contexts (thanks Vincent Vanackere),
sort imports with gofix.
* archive/zip: close file opened with OpenReader (thanks Dmitry Chestnykh).
* bufio: return nil line from ReadLine on error, as documented.
* builtin: document basic types and the built-in error type.
* bytes: add Contains function.
* exp/sql: finish implementation of transactions, flesh out types, docs.
* exp/ssh: improved client authentication support (thanks Dave Cheney).
* gc: better error message for range over non-receive channel,
bug fixes and clean-ups,
detect type switch variable not used cases,
fix escaping of package paths in symbol names,
helpful error message on method call on pointer to pointer,
portably read archive headers (thanks Ron Minnich).
* gob: fix bug when registering the same type multiple times.
* gofix: avoid panic on body-less functions in netudpgroup,
make fix order implicit by date.
* gofmt, gofix: sort imports.
* goinstall: support launchpad.net/~user branches (thanks Jani Monoses).
* gopack: do not look for Go metadata in non-Go objects.
* gotest: don't run examples that have no expected output.
* html: the parser bug fixing campaign continues (thanks Andrew Balholm).
* http: fix whitespace handling in sniffer,
only recognize application/x-www-form-urlencoded in ParseForm,
support Trailers in ReadRequest.
* lib9: add ctime.
* math: faster Gamma (thanks Charles L. Dorian),
improved accuracy for Tan (thanks Charles L. Dorian),
improved high-angle test for Cos, Sin and Tan (thanks Charles L. Dorian).
* net: implement LookupTXT for windows (thanks Alex Brainman).
* os,text,unicode: renamings.
* runtime/cgo: fix data declaration to be extern.
* runtime: add timespec definition for freebsd,
add windows callback tests (thanks Alex Brainman),
fix prototype for openbsd thrsleep,
fix set and not used,
unify mutex code across OSes,
windows_386 sighandler to use correct g (thanks Alex Brainman).
* template: format error with pointer receiver,
make redefinition of a template in a set more consistent.
* test: clear execute bit from source file (thanks Mikio Hara),
make closedchan.go exit with failure if something fails.
* time: faster Nanoseconds call.
* websocket: return an error HTTP response for bad websocket request.
* xml: allow parsing of <_> </_>. (thanks David Crawshaw).

Apologies if we missed anyone in the list above. We appreciate all your help.

To see a full list of changes between this and the previous weekly,
after updating, run:
hg log -r weekly.2011-11-02:weekly.2011-11-08

Enjoy.

Andrew

Aleksandar Radulovic

unread,
Nov 8, 2011, 7:17:40 PM11/8/11
to golang-nuts
Hmm,

It seems to me that something didn't go quite right with tagging:

air:go alex$ hg pull
pulling from https://go.googlecode.com/hg/
searching for changes
adding changesets
adding manifests
adding file changes
added 165 changesets with 1611 changes to 1039 files
(run 'hg update' to get a working copy)

air:go alex$ hg update weekly
abort: unknown revision 'weekly'!

air:go alex$ hg pull && hg update weekly.2011-11-08
pulling from https://go.googlecode.com/hg/
searching for changes
no changes found
note: possible conflict - src/pkg/http/chunked.go was renamed multiple times to:
src/pkg/net/http/chunked.go
src/pkg/net/http/httputil/chunked.go
885 files updated, 0 files merged, 229 files removed, 0 files unresolved

Any ideas regarding chunked.go? I've updated from the previous weekly
tag (2nd of November IIRC)..

-alex

--
a lex 13 x
http://a13x.net | @a13xnet

Andrew Gerrand

unread,
Nov 8, 2011, 7:26:52 PM11/8/11
to golan...@googlegroups.com



On Wednesday, November 9, 2011 11:17:40 AM UTC+11, Aleksandar Radulovic wrote:
Hmm,

It seems to me that something didn't go quite right with tagging:

air:go alex$ hg pull
pulling from https://go.googlecode.com/hg/
searching for changes
adding changesets
adding manifests
adding file changes
added 165 changesets with 1611 changes to 1039 files
(run 'hg update' to get a working copy)

air:go alex$ hg update weekly
abort: unknown revision 'weekly'!

You probably managed to pull down the tree just when I'd removed the weekly tag to tag the next snapshot. Try again.
 

air:go alex$ hg pull && hg update weekly.2011-11-08
pulling from https://go.googlecode.com/hg/
searching for changes
no changes found
note: possible conflict - src/pkg/http/chunked.go was renamed multiple times to:
 src/pkg/net/http/chunked.go
 src/pkg/net/http/httputil/chunked.go
885 files updated, 0 files merged, 229 files removed, 0 files unresolved

Any ideas regarding chunked.go? I've updated from the previous weekly
tag (2nd of November IIRC)..

That's a warning, not an error. It's fine.

Andrew 
Reply all
Reply to author
Forward
0 new messages