Skip to content

[codex] fix cli version reporting#46

Draft
leemeo3 wants to merge 1 commit into
omonien:mainfrom
leemeo3:codex/cli-version-resource
Draft

[codex] fix cli version reporting#46
leemeo3 wants to merge 1 commit into
omonien:mainfrom
leemeo3:codex/cli-version-resource

Conversation

@leemeo3

@leemeo3 leemeo3 commented Jun 23, 2026

Copy link
Copy Markdown

Summary

  • read CLI version output from the executable fixed FileVersion resource
  • add bare --version handling while preserving --version=<version> as the product version override
  • add focused DUnitX coverage for the VersionInfo helper

Root cause

TCliOptions.PrintVersion emitted a hardcoded release string, so CLI output could drift from the DPROJ VerInfo_Keys during future releases.

Validation

  • git diff --check HEAD~1 HEAD
  • rg -n "DX\.Comply v[0-9]|Writeln\('DX\.Comply v[0-9]|v1\.3\.0|v1\.2\.0" src/CLI tests returned no matches
  • rg -n "ReadExecutableFileVersion|GetFileVersionInfoSize|VerQueryValue|ShowVersion|--version" src/CLI tests/DX.Comply.Tests.CLI.Options.pas

Not run: Delphi/MSBuild/DUnitX execution, because this checkout is on macOS and no Delphi/MSBuild toolchain is available.

Fixes #41.

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.

CLI: hardcoded version string drifts from release version

1 participant