Skip to content

Expose CLI version and build metadata consistently #275

@mynk8

Description

@mynk8

Reason/Context

The CLI version is currently hardcoded and only exposed through the version command. That makes source-built, nightly, and packaged binaries harder to identify when debugging user reports.

Description

Since the project already uses a Makefile, the build system can inject version and commit metadata at build time. This keeps release binaries tied to their Git tag, while still making local/source builds identifiable by commit.

Something like having

Microcks CLI 1.0.2-43-g1dad150-dirty
Commit: 1dad150

for the local builds

and for release builds which are sourced from the release tags

Microcks CLI 1.0.3
Commit: 1dad150

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions