]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix rebuild after installation of new Go release
authorRuss Cox <rsc@golang.org>
Tue, 2 Feb 2016 14:19:47 +0000 (09:19 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 3 Feb 2016 04:33:08 +0000 (04:33 +0000)
commit0ed70efc6b7ec096603c58f27c2668af3862bb3c
treeb81475ba349209edef0325f6300a4f35315ecab4
parent182a9db2dc57ec7da98391f8955d43b2e07fd40e
cmd/go: fix rebuild after installation of new Go release

The loading of zversion.go was expecting it to be in
package runtime, but it moved to runtime/internal/sys.
Worse, the load was not checking the error.

Update the path, check the error, add a test.

Fixes #14176.

Change-Id: I203c40afe1448875581415d5e42c29f09b14545d
Reviewed-on: https://go-review.googlesource.com/19180
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/go/pkg.go