Skip to content

feat: add Compiled at line to jperl -V output#459

Merged
fglock merged 1 commit into
masterfrom
feature/compiled-at-v-output
Apr 8, 2026
Merged

feat: add Compiled at line to jperl -V output#459
fglock merged 1 commit into
masterfrom
feature/compiled-at-v-output

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Apr 8, 2026

Summary

  • Add Compiled at line to jperl -V output, matching Perl 5's format
  • Build timestamp is injected by Gradle at build time (separate from git commit date)
  • Format: Compiled at Mon DD YYYY HH:MM:SS (e.g., Compiled at Apr 8 2026 09:13:36)

Why

App::perlbrew's info command runs perl -V and parses the output for / Compiled at (.+)/. Without this line, the Compiled at: field in perlbrew info was empty, failing 3 of 4 subtests in t/command-info.t.

Changes

  • Configuration.java: New buildTimestamp field (auto-injected, like gitCommitId)
  • build.gradle: Generate timestamp in injectGitInfo task using SimpleDateFormat
  • ArgumentParser.java: Print Compiled at <timestamp> in -V output

Result

App::perlbrew: 72/73 tests pass (up from 71/73). The only remaining failure (installation2.t) requires DESTROY support.

Test plan

  • make — all unit tests pass
  • jperl -V | grep 'Compiled at' outputs correctly formatted timestamp
  • t/command-info.t — 4/4 subtests pass (was 1/4)

Generated with Devin

Perl 5's `perl -V` includes a `Compiled at Mon DD YYYY HH:MM:SS` line
that App::perlbrew and other tools parse. PerlOnJava was missing this,
causing command-info.t to fail (3/4 subtests).

- Add buildTimestamp field to Configuration.java, injected by Gradle at
  build time using the actual build timestamp (not the git commit date)
- Format matches Perl 5: `MMM DD YYYY HH:MM:SS` with space-padded day
- Print it as `  Compiled at ...` in the -V output

Fixes App::perlbrew command-info.t (4/4 subtests now pass, 72/73 total).

Generated with Devin (https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fglock fglock force-pushed the feature/compiled-at-v-output branch from 7b3a7c6 to 2c6b471 Compare April 8, 2026 07:16
@fglock fglock merged commit 8bd6e15 into master Apr 8, 2026
2 checks passed
@fglock fglock deleted the feature/compiled-at-v-output branch April 8, 2026 07:21
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.

1 participant