Bumper interprets characters in a git hash as a version string
kwc2k opened this issue · comments
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