Skip to content

Git revision information broke compatibility of --version output #11343

@geekosaur

Description

@geekosaur

Describe the bug
When there is no git revision information, a spurious "(in-tree)" is being output in the Cabal library version. This includes for released versions of cabal-install.

To Reproduce
Steps to reproduce the behavior:

$ cabal --version

Expected behavior
The output should be compatible with earlier cabal-install versions.

System information

  • cabal-install 3.16.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions