<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch go1.12.1</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=go1.12.1</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=go1.12.1'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2019-03-14T19:18:42Z</updated>
<entry>
<title>[release-branch.go1.12] go1.12.1</title>
<updated>2019-03-14T19:18:42Z</updated>
<author>
<name>Andrew Bonventre</name>
<email>andybons@golang.org</email>
</author>
<published>2019-03-14T18:15:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0380c9ad38843d523d9c9804fe300cb7edd7cd3c'/>
<id>urn:sha1:0380c9ad38843d523d9c9804fe300cb7edd7cd3c</id>
<content type='text'>
Change-Id: Id5f76204b8cd3fe67c21c5adfd3a4e456a8cad14
Reviewed-on: https://go-review.googlesource.com/c/go/+/167704
Run-TryBot: Andrew Bonventre &lt;andybons@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Katie Hockman &lt;katie@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] doc: document Go 1.12.1</title>
<updated>2019-03-14T18:14:22Z</updated>
<author>
<name>Andrew Bonventre</name>
<email>andybons@golang.org</email>
</author>
<published>2019-03-14T18:03:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=100b6739fc608a3e7d0f31eba66fd014e9986015'/>
<id>urn:sha1:100b6739fc608a3e7d0f31eba66fd014e9986015</id>
<content type='text'>
Change-Id: I6d3a615c5f72e9aa29d23e127af98d6e836da173
Reviewed-on: https://go-review.googlesource.com/c/go/+/167699
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
(cherry picked from commit f832a97e454a5e2bed336321965fd2382b2af868)
Reviewed-on: https://go-review.googlesource.com/c/go/+/167702
Reviewed-by: Andrew Bonventre &lt;andybons@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] doc: document Go 1.11.6</title>
<updated>2019-03-14T18:11:22Z</updated>
<author>
<name>Andrew Bonventre</name>
<email>andybons@golang.org</email>
</author>
<published>2019-03-14T17:58:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=82d12bdcf7520f19d433b8894b2afb33063d90a0'/>
<id>urn:sha1:82d12bdcf7520f19d433b8894b2afb33063d90a0</id>
<content type='text'>
Change-Id: I99832fa4f2c3ec28e2dad46cf7607f3766948031
Reviewed-on: https://go-review.googlesource.com/c/go/+/167698
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
(cherry picked from commit d3bb45d9046bb7d12c4fc9cdaf122f36d001fd31)
Reviewed-on: https://go-review.googlesource.com/c/go/+/167701
</content>
</entry>
<entry>
<title>Revert "[release-branch.go1.12] cmd/go: fix the default build output name for versioned binaries"</title>
<updated>2019-03-14T16:39:37Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2019-03-14T14:27:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=32355f5c316e7bdf2d1ab35c71b2cad1f26782d5'/>
<id>urn:sha1:32355f5c316e7bdf2d1ab35c71b2cad1f26782d5</id>
<content type='text'>
This reverts commit 746edd459d26f07f69fcb6bddfafaaae7c5a2911 (CL 167384).

Reason for revert: Dmitri identified a potential problem in https://go-review.googlesource.com/c/go/+/140863/11#message-db0ff6bb2c7b06161ca47de771c4465afa8b1102, and we'd like more time to investigate without holding up the 1.12 release branch.

Updates #27283
Updates #30266
Updates #30821

Change-Id: I49d7bbbe200e80b81899c3bcbf7844717af010aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/167617
Reviewed-by: Andrew Bonventre &lt;andybons@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] cmd/cgo: use explicit type for arg with bad pointer typedef</title>
<updated>2019-03-13T21:25:42Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2019-03-07T01:31:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=35ddc140c4f64f30a96bc008185a73dd670f6123'/>
<id>urn:sha1:35ddc140c4f64f30a96bc008185a73dd670f6123</id>
<content type='text'>
Fixes #30816
Updates #30646

Change-Id: I5b7e986b0588e87b9781cce01445e3c55c06b6fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/165897
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
(cherry picked from commit a6436a5655f56bb904871fece7db43a3ad3bf415)
Reviewed-on: https://go-review.googlesource.com/c/go/+/167497
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] cmd/go: fix the default build output name for versioned binaries</title>
<updated>2019-03-13T21:18:41Z</updated>
<author>
<name>Hana Kim</name>
<email>hyangah@gmail.com</email>
</author>
<published>2019-01-14T16:13:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=746edd459d26f07f69fcb6bddfafaaae7c5a2911'/>
<id>urn:sha1:746edd459d26f07f69fcb6bddfafaaae7c5a2911</id>
<content type='text'>
`go build` has chosen the last element of the package import path
as the default output name when -o option is given. That caused
the output of a package build when the module root is the major
version component such as 'v2'.

A similar issue involving `go install` was fixed in
https://golang.org/cl/128900. This CL refactors the logic added
with the change and makes it available as
internal/load.DefaultExecName.

This CL makes 'go test' to choose the right default test binary
name when the tested package is in the module root. (E.g.,
instead of v2.test, choose pkg.test for the test of 'path/pkg/v2')

Fixes #27283
Fixes #30266

Change-Id: I6905754f0906db46e3ce069552715f45356913ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/140863
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
(cherry picked from commit bf94fc3ae387fc09929443393741919fac6727af)
Reviewed-on: https://go-review.googlesource.com/c/go/+/167384
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] text/template: error on method calls on nil interfaces</title>
<updated>2019-03-13T21:00:26Z</updated>
<author>
<name>Daniel Martí</name>
<email>mvdan@mvdan.cc</email>
</author>
<published>2019-02-09T17:50:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ad8ebb9e85131aa1f37664b79f6f02415ba1a6e6'/>
<id>urn:sha1:ad8ebb9e85131aa1f37664b79f6f02415ba1a6e6</id>
<content type='text'>
Trying to call a method on a nil interface is a panic in Go. For
example:

	var stringer fmt.Stringer
	println(stringer.String()) // nil pointer dereference

In https://golang.org/cl/143097 we started recovering panics encountered
during function and method calls. However, we didn't handle this case,
as text/template panics before evalCall is ever run.

In particular, reflect's MethodByName will panic if the receiver is of
interface kind and nil:

	panic: reflect: Method on nil interface value

Simply add a check for that edge case, and have Template.Execute return
a helpful error. Note that Execute shouldn't just error if the interface
contains a typed nil, since we're able to find a method to call in that
case.

Finally, add regression tests for both the nil and typed nil interface
cases.

Fixes #30464.

Change-Id: Iffb21b40e14ba5fea0fcdd179cd80d1f23cabbab
Reviewed-on: https://go-review.googlesource.com/c/161761
Run-TryBot: Daniel Martí &lt;mvdan@mvdan.cc&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
(cherry picked from commit 15b4c71a912846530315c3e854feaaa9d0d54220)
Reviewed-on: https://go-review.googlesource.com/c/go/+/164457
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] cmd/compile: make KeepAlive work on stack object</title>
<updated>2019-03-13T20:59:47Z</updated>
<author>
<name>Cherry Zhang</name>
<email>cherryyz@google.com</email>
</author>
<published>2019-02-28T01:43:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6fc1242ea8f8bbacd88cb834ef61dbe9e84a8514'/>
<id>urn:sha1:6fc1242ea8f8bbacd88cb834ef61dbe9e84a8514</id>
<content type='text'>
Currently, runtime.KeepAlive applied on a stack object doesn't
actually keeps the stack object alive, and the heap object
referenced from it could be collected. This is because the
address of the stack object is rematerializeable, and we just
ignored KeepAlive on rematerializeable values. This CL fixes it.

Updates #30476.
Fixes #30478.

Change-Id: Ic1f75ee54ed94ea79bd46a8ddcd9e81d01556d1d
Reviewed-on: https://go-review.googlesource.com/c/164537
Run-TryBot: Cherry Zhang &lt;cherryyz@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
(cherry picked from commit 40df9cc6062492cd323f2251dd1583d200d1207e)
Reviewed-on: https://go-review.googlesource.com/c/go/+/164627
</content>
</entry>
<entry>
<title>[release-branch.go1.12] cmd/cgo: simplify and fix handling of untyped constants</title>
<updated>2019-03-13T20:57:52Z</updated>
<author>
<name>Rémy Oudompheng</name>
<email>remyoudompheng@gmail.com</email>
</author>
<published>2019-03-01T22:12:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f9d0594a471841f6ddd97a38f822da4f3461232f'/>
<id>urn:sha1:f9d0594a471841f6ddd97a38f822da4f3461232f</id>
<content type='text'>
Instead of trying to guess type of constants in the AST,
which is hard, use the "var cgo%d Type = Constant"
so that typechecking is left to the Go compiler.

The previous code could still fail in some cases
for constants imported from other modules
or defined in other, non-cgo files.

Fixes #30527

Change-Id: I2120cd90e90a74b9d765eeec53f6a3d2cfc1b642
Reviewed-on: https://go-review.googlesource.com/c/go/+/164897
Run-TryBot: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
(cherry picked from commit 711ea1e716b0c620cd9bcdd405eccae230d6dcbb)
Reviewed-on: https://go-review.googlesource.com/c/go/+/165748
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.12] fmtsort: sort interfaces deterministically</title>
<updated>2019-03-13T20:16:13Z</updated>
<author>
<name>lukechampine</name>
<email>luke.champine@gmail.com</email>
</author>
<published>2019-02-28T19:03:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7294ede9610a311576cf4e81c0ed89718e89e39d'/>
<id>urn:sha1:7294ede9610a311576cf4e81c0ed89718e89e39d</id>
<content type='text'>
Previously, the result of sorting a map[interface{}] containing
multiple concrete types was non-deterministic. To ensure consistent
results, sort first by type name, then by concrete value.

Fixes #30484

Change-Id: I10fd4b6a74eefbc87136853af6b2e689bc76ae9d
GitHub-Last-Rev: 1b07f0c275716e1b2834f74f9c67f897bae82882
GitHub-Pull-Request: golang/go#30406
Reviewed-on: https://go-review.googlesource.com/c/163745
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
(cherry picked from commit 9d40fadb1c3245a318b155ee3e19a4de139401dc)
Reviewed-on: https://go-review.googlesource.com/c/go/+/164617
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
</feed>
