Skip to content

scripts/get-version-from-git returns v2.9.8-* if not run from master branch #4030

@hdiethelm

Description

@hdiethelm

scripts/get-version-from-git returns v2.9.8-* if on any other branch than master. This can also be tested locally and gives the version number for ci packages.

Visible for example here:
https://github.com/LinuxCNC/linuxcnc/actions/runs/25918823003/job/76182201627#step:7:41

If you download aftefacts from here (branch based on master) the packages are named 2.9.8:
https://github.com/LinuxCNC/linuxcnc/actions/runs/25918823003

If you download artefacts built on master, the packages are named 2.10.0~pre.0:
https://github.com/LinuxCNC/linuxcnc/actions/runs/25905258421

Note, this has nothing to do with my ci improvements, same issue here:
https://github.com/LinuxCNC/linuxcnc/actions/runs/25624363327/job/75216663466#step:7:47

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