gradle-jgitver-plugin icon indicating copy to clipboard operation
gradle-jgitver-plugin copied to clipboard

Default qualified version numbers are not semver-compliant

Open invpos opened this issue 4 years ago • 0 comments

The three default qualified version numbers (0.0.0-EMPTY_GIT_REPOSITORY, 0.0.0-NOT_A_GIT_REPOSITORY, 0.0.0-NO_WORKTREE_AND_INDEX) contain underscore characters. But underscores are not legal according to semver and npm takes this seriously:

# npm version 0.0.0-NOT_A_GIT_REPOSITORY
npm ERR! Invalid version: 0.0.0-NOT_A_GIT_REPOSITORY

Either the profile must be enforced for the 3 default qualified version numbers so that I have the chance to remove these underscore characters, or an option must be added to specify semver-compliant version numbers for these three. This is related to #33.

invpos avatar Aug 10 '21 18:08 invpos