bumper icon indicating copy to clipboard operation
bumper copied to clipboard

Bumper interprets characters in a git hash as a version string

Open kwc2k opened this issue 1 year ago • 0 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

kwc2k avatar Apr 16 '24 09:04 kwc2k