From 5a4b9f9494bad1091f2f9cb777aed54293b647d3 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Wed, 14 Jul 2021 13:21:11 -0700 Subject: [PATCH] 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 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- src/time/internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0