pkg / rock

Create semantic version tags for your Go packages, search and discover new packages
Apache License 2.0
50 stars 8 forks source link

Fix issue with incorrect tag generation #15

Open ajpetersons opened 5 years ago

ajpetersons commented 5 years ago

When existing tags were not sorted, next tag was generated incorrectly. The program would assume minor version from a smaller major version in some cases. For example, if current largest known version was 1.0.0 and 0.0.1 was seen next, the program would increment patch version and produce the next tag as 1.0.2 instead of 1.0.1. This is fixed by only incrementing minor and patch versions if all. other version numbers match.

See #13 .