Skip to content

gitversion.sh (and then dkms) fails on clones without tags #49

@amezin

Description

@amezin

Clone with only master branch (no tags): https://github.com/aleksamagicka/liquidtux/actions/runs/4240522240/jobs/7369631715

fatal: No names found, cannot describe anything.

Possible solutions:

  • git describe --always (only commit hash when tag not found)
  • Fallback value (hardcoded v0.1.0 when git describe fails)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions