Skip to content

datumctl version: fails to parse server version, breaks on unresolved git archive placeholder #264

Description

@bmertens-datum

datumctl version errors out instead of printing the server version:

Server Version: v0.0.0-master+$Format:%H$
error: server version error: could not parse pre-release/metadata (-master+$Format:%H$) in version "v0.0.0-master+$Format:%H$"

The $Format:%H$ looks like an unresolved git export-subst placeholder
(never substituted with the actual commit hash), which isn't valid semver
metadata and fails client-side parsing.

  • datumctl version: v0.18.0
  • OS: Windows 11
  • Terminal: PowerShell in Windows Terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions