This weekly snapshot includes changes to the hash package and a gofix for the
time and os.FileInfo changes in the last snapshot.
The hash.Hasher's Sum method has been given a []byte argument, permitting
the user to hash an arbitrary byte slice without Writing to the Hasher.
Existing code that uses Sum can pass nil as the argument.
Gofix will make this change automatically.
Other changes:
* crypto/tls: cleanup certificate load on windows (thanks Alex Brainman).
* exp/ssh: add Std{in,out,err}Pipe methods to Session (thanks Dave Cheney).
* dashboard: don't choke on weird builder names.
* exp/ssh: export type signal, now Signal (thanks Gustav Paul).
* os: add ModeType constant to mask file type bits (thanks Gustavo Niemeyer).
* text/template: replace Add with AddParseTree.
* go/doc: detect headings and format them in html (thanks Volker Dobler).
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-12-01:weekly.2011-12-02
Enjoy.
Andrew
Thanks Andrew.
This release is already available in the Ubuntu PPA for the last 4
Ubuntu releases and for the next one (12.04):
Use the golang-weekly package name if you want to follow the weeklies.
--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog
-- I'm not absolutely sure of anything.
The hash.Hasher's Sum method has been given a []byte argument, permitting
the user to hash an arbitrary byte slice without Writing to the Hasher.
uname -a
Linux MObile 3.1.3-1-ARCH #1 SMP PREEMPT Sun Nov 27 21:08:51 CET 2011
x86_64 AMD Athlon(tm) II Neo K125 Processor AuthenticAMD GNU/Linux
Please let me know what additional info I can provide to help
troubleshoot.
....
test net/mail
TEST FAIL net/mail
make[1]: Entering directory `/home/paul/src/go/src/pkg/net/mail'
gotest -test.short -test.timeout=120
rm -f _test/net/mail.a
6g -p net/mail -o _gotest_.6 message.go message_test.go
rm -f _test/net/mail.a
gopack grc _test/net/mail.a _gotest_.6
--- FAIL: mail.TestDateParsing (0.00 seconds)
message_test.go:109: Parse of "Fri, 21 Nov 1997 09:55:06 -0600": got
Fri Nov 21 09:55:06 -0600 CST 1997, want Fri Nov 21 09:55:06 -0600
-0600 1997
FAIL
gotest: "./6.out -test.short=true -test.timeout=120" failed: exit
status 1
make[1]: *** [testshort] Error 2
This weekly fails for me...uname -a
Linux MObile 3.1.3-1-ARCH #1 SMP PREEMPT Sun Nov 27 21:08:51 CET 2011
x86_64 AMD Athlon(tm) II Neo K125 Processor AuthenticAMD GNU/Linux
--- FAIL: mail.TestDateParsing (0.00 seconds)
message_test.go:109: Parse of "Fri, 21 Nov 1997 09:55:06 -0600": got
Fri Nov 21 09:55:06 -0600 CST 1997, want Fri Nov 21 09:55:06 -0600
-0600 1997
FAIL
Looks like the test in the mail package might be broken. The times are clearly the same, but for some reason your system has picked up that it's CST, not the anonymous zone at offset -0600 that the test expects.
One major difference I've noticed between weekly.2011-12-0[12] and
earlier releases is that *time.Time values could be serialized using the
json and gob packages (since it had exported fields), but time.Time
values cannot (since they don't).
This changes a two-liner:
encoder := json.NewEncoder(writer)
err := encoder.Encode(data)
(where data is some data structure that contains time.Time values) into:
encoder := json.NewEncoder(writer)
err := encoder.Encode(jsonize(data))
func jsonize(data Data) jsonData {
...
}
And similarly for gob format.
Or am I missing something?
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Programming in Go" - ISBN 0321774639
http://www.qtrac.eu/gobook.html
We've just tagged a new Go weekly, weekly.2011-12-02.
* go/doc: detect headings and format them in html (thanks Volker Dobler).