Skip to content

Bumper interprets characters in a git hash as a version string #36

@kwc2k

Description

@kwc2k

When bumping a CMakeLists.txt file (as plain text), Bumper mistakenly interprets a subset of characters in a git hash as a string to be replaced with the new version. The CMakeLists.txt file contains the following code:

CPMAddPackage(
  NAME Foo
  GIT_TAG 205c73ac8d03c979e53206498b44ae123a150b0d
  GIT_REPOSITORY https://github.com/Foo
)

and the bumped file contains

CPMAddPackage(
  NAME Foo
  GIT_TAG 205c73ac8d03c979e53206498b44ae1.3.250b0d
  GIT_REPOSITORY https://github.com/Foo
)

The previous version was 1.3.1 which must be replaced with 1.3.2, hence the replacement in the GIT_TAG field is 123a1 to 1.3.2

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