]> Cypherpunks repositories - gostls13.git/commit
time: don't depend on the io package
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 May 2016 17:21:11 +0000 (17:21 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 May 2016 20:31:47 +0000 (20:31 +0000)
commitd88261fb6581106e4e7d8d6c63f0e33c2a24361e
tree103b34c2d36d5da6d8e5fd60ac768e19e755d704
parent561c94884477f568bdb68aacebfeb4d0411a874b
time: don't depend on the io package

The time package has never depended on the io package until
a recent change during Go 1.7 to use the io.Seek* constants.

The go/build dependency check didn't catch this because "time" was
allowed to depend on meta package group "L0", which included "io".

Adding the "io" package broke one of Dmitry's tools. The tool is
fixable, but it's also not necessary for us to depend on "io" at all
for some constants. Mirror the constants instead, and change
deps_test.go to prevent an io dependency in the future.

Change-Id: I74325228565279a74fa4a2f419643f5710e3e09f
Reviewed-on: https://go-review.googlesource.com/22960
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/build/deps_test.go
src/time/sys_plan9.go
src/time/sys_unix.go
src/time/sys_windows.go
src/time/zoneinfo_read.go