diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2021-07-14 13:21:11 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2021-09-10 17:11:39 +0000 |
commit | 5a4b9f9494bad1091f2f9cb777aed54293b647d3 (patch) | |
tree | 8f723a449b340e87ecd6f16b86a3cccbe0cf4a5d | |
parent | 025308fe084264538f49924b3f52d8d6b6359658 (diff) | |
download | go-5a4b9f9494bad1091f2f9cb777aed54293b647d3.tar.gz go-5a4b9f9494bad1091f2f9cb777aed54293b647d3.zip |
time: reference -tags=timetzdata in testing panic
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>
-rw-r--r-- | src/time/internal_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/internal_test.go b/src/time/internal_test.go index 87a4208b05..2c75e449d3 100644 --- a/src/time/internal_test.go +++ b/src/time/internal_test.go @@ -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 |