Skip to content

📦 Conditionally preserve file mtime when archiving through pkg_tar#974

Merged
aiuto merged 5 commits intobazelbuild:mainfrom
ronodnn:main
Sep 11, 2025
Merged

📦 Conditionally preserve file mtime when archiving through pkg_tar#974
aiuto merged 5 commits intobazelbuild:mainfrom
ronodnn:main

Conversation

@ronodnn
Copy link
Copy Markdown
Contributor

@ronodnn ronodnn commented Aug 14, 2025

If the new preserve_mtime flag is enabled, set mtime by extracting it from the file's mtime attribute. The preserve_mtime flag is disabled by default.

This is related to Issue bazelbuild/bazel#1299

@ronodnn ronodnn requested review from aiuto and cgrindel as code owners August 14, 2025 05:05
@ronodnn ronodnn changed the title 📦 Conditionally preserve file permissions when archiving through pkg_tar 📦 Conditionally preserve file mtime when archiving through pkg_tar Aug 14, 2025
Copy link
Copy Markdown
Collaborator

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

Small formatting comment. Otherwise, LGTM.

@ronodnn ronodnn requested a review from nacl as a code owner August 18, 2025 18:01
@ronodnn ronodnn requested a review from cgrindel August 18, 2025 18:07
Copy link
Copy Markdown
Collaborator

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

LGTM. I will not merge so that @aiuto can review.

@ronodnn
Copy link
Copy Markdown
Contributor Author

ronodnn commented Sep 4, 2025

LGTM. I will not merge so that @aiuto can review.

@aiuto can you take a look at this PR? thanks.

Copy link
Copy Markdown
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

Sorry for the slow response. Good sailing weather last week.

@aiuto aiuto merged commit 6d0af2c into bazelbuild:main Sep 11, 2025
3 checks passed
aiuto pushed a commit to aiuto/rules_pkg that referenced this pull request Sep 11, 2025
…azelbuild#974)

* preserve file mtime through an option

* add tests

* delete debug comment

* wrap long line

* buildifier

---------

Co-authored-by: rnascimento <[email protected]>
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.

3 participants