microcks / microcks/microcks-cli

Expose CLI version and build metadata consistently

Open
#275 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Go
Stars
52
Forks
68
Avg merge
6h 54m
Merged PRs (30d)
10

Description

### 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
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CLI's existing version command and the Makefile, then trace how source, nightly, and release binaries are built. Define the expected version and commit metadata for each build type, and verify that the command reports both consistently for local and tagged builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.