]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/time/tzdata/tzdata.go
time/tzdata: generate zip constant during cmd/dist
[gostls13.git] / src / time / tzdata / tzdata.go
index 324de5cd85c558476e141b446d6626d62845de3e..95c759b6559c50fbb5382c348df22e66660b7d48 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:generate go run generate_zipdata.go
-
 // Package tzdata provides an embedded copy of the timezone database.
 // If this package is imported anywhere in the program, then if
 // the time package cannot find tzdata files on the system,
@@ -67,6 +65,8 @@ func loadFromEmbeddedTZData(name string) (string, error) {
                zheader     = 0x04034b50
        )
 
+       // zipdata is provided by zzipdata.go,
+       // which is generated by cmd/dist during make.bash.
        z := zipdata
 
        idx := len(z) - ztailsize