Skip to content

Commit 395a244

Browse files
committed
zero out times
Signed-off-by: Appu Goundan <[email protected]>
1 parent 404da80 commit 395a244

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

common/BUILD.bazel

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:tar.bzl", "tar")
22
load("@rules_distroless//distroless:defs.bzl", "cacerts", "group", "home", "locale", "os_release", "passwd")
33
load("//:distro.bzl", "ALL_ARCHITECTURES", "ALL_DISTROS", "VERSIONS")
44
load("//private/util:deb.bzl", "deb")
5-
load(":variables.bzl", "MTIME", "NOBODY", "NONROOT", "OS_RELEASE", "ROOT", "quote")
5+
load(":variables.bzl", "NOBODY", "NONROOT", "OS_RELEASE", "ROOT", "quote")
66

77
package(default_visibility = ["//visibility:public"])
88

@@ -30,7 +30,7 @@ tar(
3030
"gnutar",
3131
],
3232
compress = "gzip",
33-
mtree = ["./tmp gname=root uname=root time=1501783453.0 mode=1777 gid=0 uid=0 type=dir"],
33+
mtree = ["./tmp gname=root uname=root time=0.0 mode=1777 gid=0 uid=0 type=dir"],
3434
)
3535

3636
[
@@ -43,7 +43,6 @@ tar(
4343
))
4444
for (key, value) in OS_RELEASE.items()
4545
},
46-
time = MTIME,
4746
)
4847
for (dist, codename, version) in VERSIONS
4948
]
@@ -53,7 +52,6 @@ tar(
5352
name = "locale_%s_%s" % (distro, arch),
5453
charset = "C.utf8",
5554
package = deb.data(arch, distro, "libc-bin"),
56-
time = MTIME,
5755
)
5856
for arch in COMMON_ARCHITECTURES
5957
for distro in COMMON_DISTROS
@@ -63,7 +61,6 @@ tar(
6361
cacerts(
6462
name = "cacerts_%s_%s" % (distro, arch),
6563
package = deb.data(arch, distro, "ca-certificates"),
66-
time = MTIME,
6764
)
6865
for arch in COMMON_ARCHITECTURES
6966
for distro in COMMON_DISTROS
@@ -99,7 +96,6 @@ group(
9996
"password": "x",
10097
},
10198
],
102-
time = MTIME,
10399
)
104100

105101
passwd(

common/variables.bzl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,5 @@ NOBODY = 65534
1818
NONROOT = 65532
1919
ROOT = 0
2020

21-
# TODO: this should be 0, but for now we'll use this to minimize diff.
22-
MTIME = "946684800"
23-
2421
DEBUG_MODE = ["", "_debug"]
2522
USERS = ["root", "nonroot"]

private/util/java_cacerts.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"java ca certificates"
22

33
load("@rules_distroless//distroless:defs.bzl", "java_keystore")
4-
load("//common:variables.bzl", "MTIME")
54
load(":extract.bzl", "tar_extract_file")
65

76
def java_cacerts(name, archive):
@@ -16,5 +15,4 @@ def java_cacerts(name, archive):
1615
certificates = [
1716
":" + name + "_extract",
1817
],
19-
time = MTIME,
2018
)

0 commit comments

Comments
 (0)