Wrong server version in DLE response

Goal

After refactoring the repository, the build tools pick the wrong (always the latest) tag to use as the DLE version.

GET /status

{
    "engine": {
        "version": "ui/1.0.13-8-ged35a00-20220217-0614",
        "startedAt": "2022-02-17T06:14:23Z",
        "telemetry": false
    }
}

GET /healthz

{
    "version": "ui/1.0.13-8-ged35a00-20220217-0520"
}

TODO / How to implement

Inject build-time variables:

  • store values in text files (version.txt, commit.txt, branch.txt)
  • use go:generate and go:embed to keep them up-to-date

OR add the --match flag to the git describe command

Acceptance criteria

Edited by Artyom Kartasov