Skip to content

feat(manifest-push): add --timestamp parameter#6899

Open
aeijdenberg wants to merge 1 commit into
podman-container-tools:mainfrom
aeijdenberg:fixmanifesttimestamp
Open

feat(manifest-push): add --timestamp parameter#6899
aeijdenberg wants to merge 1 commit into
podman-container-tools:mainfrom
aeijdenberg:fixmanifesttimestamp

Conversation

@aeijdenberg

Copy link
Copy Markdown
Contributor

This is similar to options already added to build etc, and will set any timestamps in destination contents (such as tar file header entries) to this value. Helps with reproducible builds.

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds --timestamp 0 flag to manifest push which sets the timestamp on any tar entries to the specified time.

How to verify it

Added new bats test.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Have opened podman-container-tools/container-libs#899 for the change to the library.

There's a few extra lines in this PR to accommodate the user not setting the timestamp (ie current behaviour). If it were up to me, I'd probably just default it to 0 and not special case, but to keep the change minimal I tried to match existing patterns to make the flag optional.

Does this PR introduce a user-facing change?

Adds `--timestamp 0` flag to `manifest push` which sets the timestamp on any tar entries to the specified time.

@nalind nalind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, but a description of the new flag should be added to docs/buildah-manifest-push.1.md.

Comment thread tests/lists.bats Outdated
Comment thread vendor/go.podman.io/common/libimage/manifests/manifests.go
@aeijdenberg aeijdenberg force-pushed the fixmanifesttimestamp branch from 6243700 to 55a5d22 Compare June 10, 2026 11:39
@packit-as-a-service

Copy link
Copy Markdown

Ephemeral COPR build failed. @containers/packit-build please check.

1 similar comment
@packit-as-a-service

Copy link
Copy Markdown

Ephemeral COPR build failed. @containers/packit-build please check.

@aeijdenberg

Copy link
Copy Markdown
Contributor Author

Generally looks good, but a description of the new flag should be added to docs/buildah-manifest-push.1.md.

Done

Comment thread cmd/buildah/manifest.go
Comment thread docs/buildah-manifest-push.1.md Outdated
This is similar to options already added to build etc, and will set any
timestamps in destination contents (such as tar file header entries) to
this value. Helps with reproducible builds.

Signed-off-by: Adam Eijdenberg <adam@continusec.com>
@aeijdenberg aeijdenberg force-pushed the fixmanifesttimestamp branch from 55a5d22 to f26f64d Compare June 11, 2026 11:10

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TomSweeneyRedHat

Copy link
Copy Markdown
Contributor

LGTM
@nalind, were you concerns answered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants