]> Cypherpunks repositories - gostls13.git/commitdiff
time: reference -tags=timetzdata in testing panic
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 14 Jul 2021 20:21:11 +0000 (13:21 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 10 Sep 2021 17:11:39 +0000 (17:11 +0000)
This will spare anyone who hits it having to search for the workaround.

Change-Id: Iff0d449212f2675ac78e30ae5ffc8efb4d924088
Reviewed-on: https://go-review.googlesource.com/c/go/+/334611
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/internal_test.go

index 87a4208b058e1bd77e395374e1063e484d02d9a8..2c75e449d31098a22fc02b0ed8035536041e7920 100644 (file)
@@ -12,7 +12,7 @@ func init() {
 func initTestingZone() {
        z, err := loadLocation("America/Los_Angeles", zoneSources[len(zoneSources)-1:])
        if err != nil {
-               panic("cannot load America/Los_Angeles for testing: " + err.Error())
+               panic("cannot load America/Los_Angeles for testing: " + err.Error() + "; you may want to use -tags=timetzdata")
        }
        z.name = "Local"
        localLoc = *z