Skip to content

fix: set wrapper file timestamps to the current time instead of 1980 - #2658

Open
instreest wants to merge 1 commit into
jbangdev:mainfrom
instreest:fix/300-wrapper-timestamps
Open

instreest wants to merge 1 commit into
jbangdev:mainfrom
instreest:fix/300-wrapper-timestamps

Conversation

@instreest

Copy link
Copy Markdown

jbang wrapper install copies the launcher scripts and the jar with COPY_ATTRIBUTES, which carries over the timestamps of the JBang installation they come from. For a released JBang those timestamps come out of its distribution archive, and since the build enables reproducible builds Gradle stamps every entry with its fixed 1980-02-01 constant. Every generated wrapper therefore looked like it was last modified in 1980.

Keep copying the attributes, so the scripts stay executable, and set the modification time of each copy to the current time right after.

Fixes #300

`jbang wrapper install` copies the launcher scripts and the jar with
COPY_ATTRIBUTES, which carries over the timestamps of the JBang
installation they come from. For a released JBang those timestamps come
out of its distribution archive, and since the build enables reproducible
builds Gradle stamps every entry with its fixed 1980-02-01 constant. Every
generated wrapper therefore looked like it was last modified in 1980.

Keep copying the attributes, so the scripts stay executable, and set the
modification time of each copy to the current time right after.

Fixes jbangdev#300

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 64ab8599-5bc6-4a7f-af54-81dc321deefd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
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.

jbang wrapper generated files have wrong timestamp

2 participants