feat: add Compiled at line to jperl -V output#459
Merged
Conversation
2 tasks
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>
7b3a7c6 to
2c6b471
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Compiled atline tojperl -Voutput, matching Perl 5's formatCompiled at Mon DD YYYY HH:MM:SS(e.g.,Compiled at Apr 8 2026 09:13:36)Why
App::perlbrew's
infocommand runsperl -Vand parses the output for/ Compiled at (.+)/. Without this line, theCompiled at:field in perlbrew info was empty, failing 3 of 4 subtests int/command-info.t.Changes
Configuration.java: NewbuildTimestampfield (auto-injected, likegitCommitId)build.gradle: Generate timestamp ininjectGitInfotask usingSimpleDateFormatArgumentParser.java: PrintCompiled at <timestamp>in-VoutputResult
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 passjperl -V | grep 'Compiled at'outputs correctly formatted timestampt/command-info.t— 4/4 subtests pass (was 1/4)Generated with Devin