From 96582a43d48d5fcc869bb4ca438e2954005ae96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20F=C3=A1bi=C3=A1n?= Date: Fri, 29 Sep 2023 21:03:37 +0200 Subject: [PATCH] oci_tarball: fix file time to 2000-01-01 for files inside the tar (#380) --- oci/private/tarball.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/private/tarball.sh.tpl b/oci/private/tarball.sh.tpl index dff94b6d..7f568e2a 100644 --- a/oci/private/tarball.sh.tpl +++ b/oci/private/tarball.sh.tpl @@ -35,4 +35,4 @@ layers="${LAYERS}" \ --output-format json > "${STAGING_DIR}/manifest.json" # TODO: https://github.com/bazel-contrib/rules_oci/issues/217 -tar -C "${STAGING_DIR}" -cf "${TARBALL_PATH}" manifest.json blobs +tar -C "${STAGING_DIR}" -cf "${TARBALL_PATH}" --mtime='2000-01-01' manifest.json blobs