Skip to content

Follow-up items: ch -v and --version #2505

@dilijev

Description

@dilijev

Follow-up from issue #109
Initial implementation merged into release/1.4 in time for v1.4.1. (PR #2490)
See also issue #2472

Follow-Up Work Items

(Will be followed-up in master.)

  • Error checking/reporting: "ch -v" doesn't complain even if chakracore cannot be loaded? #2617
  • Windows Official Builds: Additionally report branch, hash, build number, build date.
    • Trivially, this could be the file description directly: release/1.4:6b404ca7761420ec8634ce7888c6fd2ca1ed01f5.00009.64404.161220-2254 which is <branch>:<hash>.<buildID-part1>.<buildID-part2>.<build-date>. The output would look like Listing 1.
    • Alternately, could take that info and parse it into a clearer format like Listing 2.
  • Dev (Private) Builds on Windows: Report that it is a dev build by adding -dev or -private suffix to build number (e.g. 2.0.0.0-dev). Much of the official build metadata would be missing, see Listing 3.
  • Xplat Builds (cc @obastemur -- what do you think?)
    • Embed information in the binary that can be read in a way like how we read it from ChakraCore.dll on Windows. Most likely needs cmake modification.
    • Implement reading this information to report version info for xplat binaries.

Listing 1 (official builds -- proposed output -- short variant):

ch.exe version 1.4.1.0
release/1.4:6b404ca7761420ec8634ce7888c6fd2ca1ed01f5.00009.64404.161220-2254

chakracore.dll version 1.4.1.0
release/1.4:6b404ca7761420ec8634ce7888c6fd2ca1ed01f5.00009.64404.161220-2254

Listing 2 (official builds -- proposed output -- verbose variant):

ch.exe version 1.4.1.0 release/1.4@6b404ca7
Branch: release/1.4
Hash: 6b404ca7761420ec8634ce7888c6fd2ca1ed01f5
Build Number: 00009.64404
Build Date: 161220-2254

chakracore.dll version 1.4.1.0 release/1.4@6b404ca7
Branch: release/1.4
Hash: 6b404ca7761420ec8634ce7888c6fd2ca1ed01f5
Build Number: 00009.64404
Build Date: 161220-2254

Listing 3 (dev builds -- proposed):

ch.exe version 1.4.1.0-dev
chakracore.dll version 1.4.1.0-dev

/cc @tcare @curtisman @obastemur @bterlson @mathiasbynens

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions