From 627765a861c6762d15cfdfeb2f7e4872523edbe4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 5 Dec 2022 23:39:49 -0500 Subject: time/tzdata: generate zip constant during cmd/dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have a make.bash-time generation capability, so use it to generate the embedded zip file for time/tzdata. This is one less file to try to review in CLs like CL 455356. For #22487. Fixes #43350. Change-Id: I2fcd0665fa0b1c830baec5fb4cd714483fea25a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/455357 TryBot-Result: Gopher Robot Reviewed-by: Heschi Kreinick Run-TryBot: Russ Cox Reviewed-by: Daniel Martí Auto-Submit: Russ Cox Reviewed-by: Ian Lance Taylor --- lib/time/update.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/time/update.bash b/lib/time/update.bash index 48606b9de4..4f15caec8e 100755 --- a/lib/time/update.bash +++ b/lib/time/update.bash @@ -48,9 +48,8 @@ fi cd zoneinfo ../mkzip ../../zoneinfo.zip cd ../.. -go generate time/tzdata -files="update.bash zoneinfo.zip ../../src/time/tzdata/zipdata.go" +files="update.bash zoneinfo.zip" modified=true if git diff --quiet $files; then modified=false -- cgit v1.2.3-54-g00ecf